In some conditions, content moderation fails to check a users access to use certain transitions, leading to an access bypass.

In order to fix this issue, the following changes have been made to content moderation which may have implications for backwards compatibility:

ModerationStateConstraintValidator

Two additional services have been injected into this service. Anyone subclassing this service must ensure these additional dependencies are passed to the constructor, if the constructor has been overridden.

StateTransitionValidationInterface

An additional method has been added to this interface. Implementations of this interface which do not extend the StateTransitionValidation should implement this method.

Implementations which do extend from the StateTransitionValidation should ensure any behavioural changes they have made are also reflected in this new method.

User permissions

Previously users who didn’t have access to use any content moderation transitions were granted implicit access to update content provided the state of the content did not change. Now access to an associated transition will be validated for all users in scenarios where the state of content does not change between revisions.

This vulnerability affects the following application versions:

  • Drupal 8.2.0
  • Drupal 8.2.1
  • Drupal 8.2.2
  • Drupal 8.2.3
  • Drupal 8.2.4
  • Drupal 8.2.5
  • Drupal 8.2.6
  • Drupal 8.2.7
  • Drupal 8.2.8
  • Drupal 8.3.0
  • Drupal 8.3.1
  • Drupal 8.3.2
  • Drupal 8.3.3
  • Drupal 8.3.4
  • Drupal 8.3.5
  • Drupal 8.3.6
  • Drupal 8.3.7
  • Drupal 8.3.8
  • Drupal 8.3.9
  • Drupal 8.4.0
  • Drupal 8.4.1
  • Drupal 8.4.2
  • Drupal 8.4.3
  • Drupal 8.4.4
  • Drupal 8.4.5
  • Drupal 8.4.6
  • Drupal 8.4.7
  • Drupal 8.4.8
  • Drupal 8.5.0
  • Drupal 8.5.1
  • Drupal 8.5.2
  • Drupal 8.5.3
  • Drupal 8.5.4
  • Drupal 8.5.5
  • Drupal 8.5.6
  • Drupal 8.5.7
  • Drupal 8.6.0
  • Drupal 8.6.1

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *