Improper access control allows the attacker to comment on an internal commit after he's no longer an admin
A user who was removed from a project could still post comments on internal commits by replying to a notification email they had received earlier. This allowed a former maintainer to comment on commits after their access was revoked.
GitLab
Originally disclosed on GitLab
- Fixed in 33 days
- Disclosed after 33 days
HackerOne report #635512 by hx01 on 2019-07-04:
Description:
the attacker (previously maintainer) is able to comment in internal commits by replying to the notification email which were received before :

Steps to reproduce Setup:
- [email protected] (maintainer)
- [email protected](maintainer)
PoC :
- the analyst should comment on their commit with [email protected] --> [email protected] will receive the notification.
- the analyst should remove the [email protected] role after that
- the analyst should reply to the notification email received.:

- bingo! it will be posted to the commit :

Impact
this could be exploited to comment on the commits by the attacker who was accidentally added to the project or was removed .
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
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
Impact
A removed user could post comments on internal commits.
What the attacker needed
Attacker was a project maintainer; attacker received a notification email; attacker's role is later removed
How it was found
- A maintainer comments on a commit, which sends a notification email to another maintainer.
- The second maintainer's role is removed from the project.
- The removed maintainer replies to the notification email.
- The reply is posted as a comment on the commit.
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 you reply to an email notification from a code hosting service, the service often posts your reply as a comment. This report shows that even after a user is removed from a project, they can still use an old notification email to post comments on internal commits. The service should check if the user still has permission before accepting the comment.
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.