Publicly Editable Google Sheets for GitLab's Swag orders
A Google Sheet containing GitLab's internal swag orders was publicly editable without authentication. An attacker could modify or delete orders and change shipping addresses, causing financial impact or redirecting swag.
GitLab
Originally disclosed on GitLab
- Fixed in under an hour
- Disclosed after under an hour
HackerOne report #804914 by xanbanx on 2020-02-25, assigned to @cmaxim:
Hi GitLab Security Team,
Summary
I found a GitLa owned Google docs sheet, which is publicly editable. In particular, this Google Sheet leaks GitLab's internal swag orders. Moreover, it is editable. Thus, an attacker can change upcoming orders or delete them thus causing financial impact for GitLab. It also can change the shipping address, thus redirecting Swag orders to him.
Steps to reproduce
Without being logged in to google, visit https://docs.google.com/spreadsheets/d/1NrxXRGkSv-3kUzHtJ7Dsd_wWpHgzKfBCRB3wu1YMSvo/edit#gid=0
You see a Google Sheet for GitLab's internal swag orders, which is publicly editable.
Impact
The linked Google Sheet describes the swag orders for GitLab's events. An attacker can modify them leading to GitLab order no, wrong, or too much swag and thus have financial impact to the marketing team. Also, for example if swag is missing for an event. Furthermore, we can change the shipping contact, thus redirecting swag to the attacker.
What is the current bug behavior?
Google Sheets of GitLab's swag orders is publicly editable.
What is the expected correct behavior?
Proper access control to only allow GitLab team members to access this Google Sheet.
Best,
Xanbanx
Impact
See above.
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 Google Sheet's sharing settings were set to allow anyone with the link to edit, instead of restricting access to GitLab team members.
Impact
An attacker could modify or delete swag orders, causing financial impact or missing swag at events, and could change shipping contacts to redirect swag to themselves.
What the attacker needed
None
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.
A Google Sheet is an online spreadsheet. It was set so that anyone with the link could edit it, not just GitLab staff. This meant a stranger could change orders or delivery addresses.
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.