Skip to content

Drupal REST API can bypass comment approval

High severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Apr 23, 2024

Package

composer drupal/core (Composer)

Affected versions

>= 8.0, < 8.3.7

Patched versions

8.3.7
composer drupal/drupal (Composer)
>= 8.0, < 8.3.7
8.3.7

Description

In Drupal 8 prior to 8.3.7; When using the REST API, users without the correct permission can post comments via REST that are approved even if the user does not have permission to post approved comments. This issue only affects sites that have the RESTful Web Services (rest) module enabled, the comment entity REST resource enabled, and where an attacker can access a user account on the site with permissions to post comments, or where anonymous users can post comments.

References

Published by the National Vulnerability Database Jan 15, 2019
Published to the GitHub Advisory Database May 13, 2022
Reviewed Apr 23, 2024
Last updated Apr 23, 2024

Severity

High
7.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CVE ID

CVE-2017-6924

GHSA ID

GHSA-p8g6-5mg7-9r5q

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.