Access Control: Inject tasks into other users decks
The card-move endpoint accepted a destination stack identifier without checking that the stack belonged to the requesting user. An attacker could therefore inject cards into another user's deck.
- Triaged in 30 hours
- Fixed in 13 days
- Paid in 27 days
- Disclosed after 9 months
When moving a task to another deck a request is made to /apps/deck/cards/XXXX. in the request the destination stackId parameter is used. When a user changes the parameter to that of a stack not belonging to him the task is still added.
PoC
Create a card:
POST /apps/deck/cards HTTP/1.1
[...]
{"title":"SOME_TEST","stackId":1,"type":"plain"}
Move the Card:
PUT /apps/deck/cards/13 HTTP/1.1
[...]
{"title":"SOME_TEST","description":"","stackId":2,"type":"plain","lastModified":1588755341,"lastEditor":null,"createdAt":1588755341,"labels":null,"assignedUsers":null,"attachments":null,"attachmentCount":null,"owner":"test1","order":999,"archived":false,"duedate":null,"deletedAt":0,"commentsUnread":0,"id":13,"overdue":0}
When now intercepting and changing the stackId to 6 (that of another user) the server responds with a 200 OK and the card is added to the stack of the receiving user.
Impact
Deck of other users can be polluted. Missing authorization check.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the move handler trusted the client-supplied stack identifier and never verified that the destination stack was owned by the authenticated user.
Impact
Other users' decks could be polluted with unwanted cards.
What the attacker needed
An account on the deck app; knowledge of another user's stack id
How it was found
- Create a card in your own stack.
- Send a request to move that card, changing the destination stack identifier to one belonging to another user.
- Observe the server returning success and the card appearing in the other user's stack.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A deck app lets you keep cards in stacks. When you move a card, the app is told which stack it should go into. The app never checked that the chosen stack was yours, so anyone could drop cards into someone else's stack.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.