IDOR+Privilege Escalation+No Rate Limit+Business Logic into a Single Vulnerability
A user with only edit permissions could change the team ID in a request that converts a team from student to free, thereby blocking the entire team from editing projects. Combined with a lack of rate limiting, the attacker could repeatedly send the request to keep the team disabled for an extended period.
Published on medium.com
Hello everyone , I’m Hossam Hamada, Today I would like to share with you one of my discoveries in HackerOne ’s program
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server did not verify that the user had admin rights before allowing a change to the team's plan, and it also lacked rate limiting on that action.
Impact
An editor could block the entire team from editing projects, and with no rate limit, they could keep the team disabled for an extended period by repeatedly sending the request.
What the attacker needed
A free account; membership in the target team with edit permissions; ability to intercept HTTP requests
The fix
The server should check that the user has admin permissions before allowing a team plan change, and it should enforce rate limiting on that action.
How it was found
- Create a free account and set up a free team as admin.
- Create a project and invite another free account with only edit permissions.
- As the editor, create four files to trigger the upgrade prompt, then intercept the request to convert the team to student.
- Change the team ID in the request to the ID of a team where you only have edit permissions.
- Change the student_team parameter to false and send the request.
- Observe that the team is converted to free and becomes blocked.
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 write-up has not been written yet. The Original tab links to the source.
A team has different roles: an admin can change settings, while an editor can only work on projects. The editor found that by changing a number in a request, they could make the team switch to a free plan, which then locked everyone out of editing. Because there was no limit on how often they could send that request, they could keep the team locked for a long time.
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.