Privilege Escalation in snapshat ADS$$
A low-privilege Data Analyst role could reach legacy organisation-scoped ad account endpoints that did not check the caller's ad account role, so the analyst could create or edit ad accounts belonging to an admin account. The reporter demonstrated creating an ad account under the admin's organisation with an analyst token and received a success response.
medium.com
Published on medium.com
Hello Hackers — hope you’re well. Today I’m sharing a short write‑up about a recent finding snapshat ads bbp
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 legacy organisation-scoped ad account endpoints were routed to a backend service that checked organisation access but not the caller's role on the target ad account.
Impact
A Data Analyst could create and edit ad accounts belonging to an admin account, escalating from view-only to ad account admin capabilities.
What the attacker needed
A low-privilege Data Analyst account; knowledge of the target admin ad account id
How it was found
- Map the roles in the Business UI and note that a Data Analyst cannot manage ad accounts.
- Confirm the standard ad account endpoints return a permission error for an analyst token.
- Notice legacy organisation-scoped endpoints in the UI's network traffic.
- Create a low-privilege analyst account and several ad accounts, one of them admin-owned.
- Take a low-privilege request and replace the ad account identifier in the URL with the admin account's identifier.
- Send the request and observe a success response creating an ad account under the admin organisation.
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 web app has two layers: the screens you click and the server behind them. The screens hid the admin buttons from a low-level user, but the server also had an older set of addresses that forgot to check whether the user was allowed to do admin things. Because of that, a low-level user could send requests straight to the server and change another account's details.
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.