Drupal REST API can bypass comment approval
Impact
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.
Source excerpt · OSVThis 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.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 8.0 before 8.3.7Ecosystem versions | 8.3.7 |
Version evidence: OSV · GHSA-p8g6-5mg7-9r5q
View original version evidence (61 explicit versions)
| Affected range | Recorded fix |
|---|---|
| From 8.0 before 8.3.7Ecosystem versions | 8.3.7 |
Version evidence: OSV · GHSA-p8g6-5mg7-9r5q
View original version evidence (67 explicit versions)
Original source 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
- Security advisory nvd.nist.gov/vuln/detail/CVE-2017-6924
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6924.yaml
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6924.yaml
- Source reference github.com/drupal/core
- Security advisory www.drupal.org/SA-CORE-2017-004
- Security advisory www.drupal.org/forum/newsletters/security-advisories-for-drupal-core/2017-08-16/drupal-core-multiple
- Source reference www.securityfocus.com/bid/100368
- Source reference www.securitytracker.com/id/1039200