All problems

Subscription Cancellation Checks the Plan Owner Instead of the Subscriber

Level 2 · node · Security · Authorization target object confusion

Scenario

Only the owner of a subscription may cancel it. The service compares the requester with the owner of the referenced plan instead, allowing a shared plan owner to cancel another user subscription.

Requirements

- Missing subscription returns 404 - Only subscription.ownerId may cancel - Plan ownership grants no cancellation authority - Unauthorized request returns 403 - Rejection does not change subscription state

Acceptance criteria

  • Owner cancellation succeeds
  • Other subscriber is rejected
  • Plan owner cannot cancel another subscription
  • Missing subscription returns 404
  • Rejected state remains unchanged