REST API can bypass comment approval - Access Bypass - Moderately Critical
Drupal Core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| drupal/core Packagist |
|
|
| drupal/drupal Packagist |
|
|
Drupal Core
| Product | Affected | Fixed in |
|---|---|---|
| drupal/core Packagist |
|
|
| drupal/drupal Packagist |
|
|
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.
From the CVE record · drupal
Drupal Core before 8.3.7 can approve comments posted through REST by users who lack permission to post approved comments. This requires the RESTful Web Services module and comment entity REST resource to be enabled, and either an attacker-controlled account permitted to post comments or anonymous comment posting.
Operators running Drupal Core 8.0 through versions before 8.3.7, including the Packagist packages drupal/core and drupal/drupal, should check their sites.