djangocms-moderation fixes flaw exposing private moderation comments

  • djangocms-moderation
  • IDOR
  • authorization
  • information disclosure

Security flaw stems from missing object-level checks in admin views

Through version 2.3.0, staff with comment-view permissions could read discussions for collections or requests they did not participate in

Update to version 2.4.1 implements mandatory participant access gates

The djangocms-moderation project fixed a vulnerability that let authenticated staff with comment-view permissions read private moderation comments for collections or requests they did not participate in. The issue affects versions through 2.3.0.

The flaw was in CollectionCommentAdmin and RequestCommentAdmin, which checked a user’s general permission to view comments but not whether the user was a participant in the specific collection or request. Staff could access comments by supplying the target object’s ID.

Version 2.4.1 adds a participant check for both comment admins. Non-participants who try to view those comments now receive an HTTP 403 error. The advisory says comment creation, editing and deletion were not affected.

Key terms explained

object-level authorization

Object-level authorization is a security mechanism that validates whether a specific user has permission to perform an action on a particular data item. It ensures that access is restricted to the specific resource requested rather than just checking general system access.

Think of it this way. This is like having a key that only opens one specific locker in a gym, rather than a master key that opens every locker in the building.

djangocms-moderation

djangocms-moderation is a software project that provides content moderation and editorial approval workflows for the Django CMS platform.