Private objects exposed through project import
A project import feature allowed an attacker to set relationship fields such as issue_ids through the attributes object, bypassing a previous fix that blocked direct _ids attributes. This let an attacker link their project to other users' private issues by guessing incremental IDs.
- Triaged in 4 days
- Fixed in 11 days
- Paid in 4 days
- Disclosed after 2.4 years
Summary
This is a bypass of https://hackerone.com/reports/743953 , the current fix is blocking all "_ids" attributes. However an attacker could still set attributes like issue_ids by indrectly settings the field within the attributes field it self:
# project.json
"attributes": {
"issue_ids": [ 29279725 ],
"description": "Set from attributes[description]"
},
Steps to reproduce
- Import the attached tarball.
- Check issues tab
The other parts of the report are mostly same as those I mentioned in https://hackerone.com/reports/743953 , I decide to write a new report considering the impact to gitlab.com.
Impact
With this ability to modify relations between objects, an attacker could end up with accessing random resources of other users by traversing the incremental ID space.
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 import code only blocked top-level keys ending in _ids but still accepted relationship fields nested inside the attributes object.
Impact
An attacker could access random resources of other users by traversing the incremental ID space.
What the attacker needed
Ability to import a project; crafted project tarball
How it was found
- Import the crafted project tarball.
- Open the issues tab to see the linked issues.
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 import a project, the file can contain extra settings that tell the system which issues belong to the project. The previous fix stopped people from directly naming those links, but the same links could still be set inside a nested settings block. By trying many numbers, an attacker could attach other people's private issues to their own project and read them.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.