When you authorize create:comment, also check that the actor can access the parent (the ticket, document, or thread).
Skipping the parent check is a classic confused-access path: anyone who can guess or enumerate a parent id can attach children under objects they should never see.
Authorize both:
- permission to create the child type
- permission to use that specific parent
Same pattern for attachments, replies, and nested folders.
Top comments (0)