Drupal REST API can bypass comment approval
Published 13 May 2022 · Updated 23 Apr 2024
Affected packages
- Affected
- >=8.0 <8.3.7
- Fixed in
- 8.3.7
composer require drupal/core:^8.3.7- Affected
- >=8.0 <8.3.7
- Fixed in
- 8.3.7
composer require drupal/drupal:^8.3.7Details
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.
Is GHSA-p8g6-5mg7-9r5q in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-6924
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2017-6924.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2017-6924.yaml
- Packagegithub.com/drupal/core
- Linkwww.drupal.org/SA-CORE-2017-004
- Linkwww.drupal.org/forum/newsletters/security-advisories-for-drupal-core/2017-08-16/drupal-core-multiple
- Linkwww.securityfocus.com/bid/100368
- Linkwww.securitytracker.com/id/1039200
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.