Skip to content
Access control Disclosed report Intermediate

Access to GitLab's Slack by abusing issue creation from e-mail

intidc Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Disclosed after 6 months

Summary by the researcher

SEE BLOGPOST: "How I hacked hundreds of companies through their helpdesk" https://medium.com/@intideceukelaire/how-i-hacked-hundreds-of-companies-through-their-helpdesk-b7680ddc2d4c

The report

Hi there,

I found a way to become a verified GitLab team member on Slack. By doing so, I gained access to dozens of channels possibly containing sensitive information. Note that I deleted my account intidc_hackerone immediately afterwards and did not join, read or engage with any of those channels.

#How it works

Screen_Shot_2017-04-03_at_01.19.47.png
Screen_Shot_2017-04-03_at_01.19.47.png From the original on HackerOne
  • GitLab allows new issues to be created when e-mailed to a unique e-mail address containing a secret token at incoming+{username}/{projectname}+{token}@gitlab.com
Screen_Shot_2017-04-03_at_01.26.08_copy.png
Screen_Shot_2017-04-03_at_01.26.08_copy.png From the original on HackerOne
  • As you can see, this is a valid @gitlab.com e-mail address, so we can use the issues system to sign up for services like Slack, Facebook Workplace, ...
Screen_Shot_2017-04-03_at_01.51.39.png
Screen_Shot_2017-04-03_at_01.51.39.png From the original on HackerOne
  • These e-mail verification e-mails are e-mailed as new issue tickets to my project:
Screen_Shot_2017-04-03_at_01.53.16.png
Screen_Shot_2017-04-03_at_01.53.16.png From the original on HackerOne
Screen_Shot_2017-04-03_at_01.54.10_copy.png
Screen_Shot_2017-04-03_at_01.54.10_copy.png
  • After clicking the verification link, all you need to do is set-up 2FA and you'll be able to access GitLab's Slack:
Screen_Shot_2017-04-03_at_00.57.58.png
Screen_Shot_2017-04-03_at_00.57.58.png From the original on HackerOne

I took a screenshot of some channels as a proof of concept, but did not actually enter them

#Suggested fix

I've seen companies taking different approaches to prevent this from happening:

These fixes can be carried out quickly but aren't waterproof: an attacker will still be able to gain access to similar services such as Facebook workplace or Yammer if they use similar authentication methods.

In the longer run, a safer approach would be:

  • Requiring users to mail their issue tickets to a gitlab subdomain e-mail, such as @reply.gitlab.com

Please let me know if you have any questions, Best regards,

Inti

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A critical-severity access control bug in GitLab, rated CVSS 9.3. HackerOne made it public on 21 September 2017.

About 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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 by intidc

View all

5 more disclosed reports, best first.

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.