Skip to content
Access control Disclosed report Beginner

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 :

reply.png
reply.png From the original on GitLab

Steps to reproduce Setup:

  1. [email protected] (maintainer)
  2. [email protected](maintainer)

PoC :

  1. the analyst should comment on their commit with [email protected] --> [email protected] will receive the notification.
  2. the analyst should remove the [email protected] role after that
  3. the analyst should reply to the notification email received.:
reply.png
reply.png From the original on GitLab
  1. bingo! it will be posted to the commit :
post.png
post.png From the original on GitLab

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

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

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

  1. A maintainer comments on a commit, which sends a notification email to another maintainer.
  2. The second maintainer's role is removed from the project.
  3. The removed maintainer replies to the notification email.
  4. 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.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.