Improper access control allows the attacker to comment in internal commit after they are no longer 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 while still a member. This allowed a former maintainer to continue commenting on commits after their access was revoked.
GitLab
Originally disclosed on GitLab
- Fixed in 4 months
- Disclosed after 4 months
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!
Security issue: https://dev.gitlab.org/gitlab/gitlabhq/issues/2906
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 user removed from a project could still post comments on internal commits.
What the attacker needed
Attacker was a project maintainer; attacker received a notification email; attacker's role was 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.
Replying to a notification email posts your reply as a comment. A user removed from a project could still do this using an email received earlier.
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.