cmis.cmis_object_delete route is not protected against CSRF attacks

Created on 10 May 2024, about 2 months ago

Problem/Motivation

This module has a CSRF vulnerability in version 8.x-2.0-alpha3.
The cmis.cmis_object_delete route deletes a CMIS object without checking a CSRF token.

Steps to reproduce

An attacker could trick an user with the "access all cmis browsers" permission to load a page containing code like this:

<img src="http://example.com/cmis/object-delete/foo/fd6ec7b8-e514-499b-9928-ba4a240d6bde%3B1.0?type=browser&parent=c4ec4d2b-9fc0-4c3d-b665-7cc7172531fe">

This could delete the CMIS object without the user approval.

Proposed resolution

The confirmation should probably be built with the ConfirmFormBase class.

🐛 Bug report
Status

Active

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024