My very first bug : Finding BAC in Hubspot
A low-privileged user could still call the user-export API after their Super Admin privileges were revoked, because the backend did not re-check permissions. An attacker with a normal account could export sensitive tenant data such as personal information, two-factor authentication status and permission sets.
medium.com
Published on medium.com
This is the story of the first bug I ever discovered. In this write‑up, I’ll explain how a small idea that started from a UI observation eventually led me to find a Broken Access Control vulnerability in HubSpot.
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 export API endpoint checked only that the caller was authenticated, not that the caller currently held the Super Admin role, so revoked privileges were not enforced server-side.
Impact
A low-privileged user could export personal user information, two-factor authentication status, permission sets and account activity that should be restricted to Super Admins.
What the attacker needed
A HubSpot tenant; a Super Admin account; a zero-privilege account; ability to intercept HTTP requests
How it was found
- Create a Super Admin account and use the export functionality while intercepting the request.
- Copy the captured export request.
- Log in to a zero-privilege account and copy its session cookies.
- Replace the cookies in the captured request with the zero-privilege session cookies.
- Send the modified request and observe that the export succeeds.
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 website often hides buttons or pages from users who should not use them, but hiding something in the screen is not the same as locking it on the server. Here the server accepted an export request from a normal user because it did not check that the user was still an administrator. The researcher showed this by taking a request made by an admin and sending it again with a normal user's session.
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.