All problems

Another User Can Download a Support Ticket Attachment

Level 2 · node · Security · Missing related-resource ownership check

Scenario

Users of a customer support system must only download attachments from their own tickets. A valid attachment ID is enough to allow a download, because the service does not verify that the requesting user owns the ticket containing the attachment.

Requirements

- Reject a missing attachment - Allow only when the requester owns the attachment ticket - Reject attachments from another user ticket - Allow attachments from another ticket owned by the same user - Never expose file content in a rejected response

Acceptance criteria

  • Own ticket attachment downloads
  • Other user attachment is rejected
  • Missing attachment is rejected
  • Another own ticket is allowed
  • Rejected response has no file content