How I Forced A/B Experiments on Any User via an Unauthenticated E
A debug endpoint shipped in the production mobile app allowed anyone to force A/B experiment variations without authentication, keyed either by a random visitor token or by a sequential numeric customer identifier. Because the customer identifier is a plain sequential integer, an attacker could enumerate it and flip experiments on any user, and a crafted deeplink could also make a victim's own app apply a forced variation.
It’s been a while since my last writeup, and this time I’m coming with something a little different — not an XSS and not a classic ATO, but a broken access control / missing authentication bug on a mobile target that got triaged as Medium (CWE-306 — Missing Authentication for Critical Function).
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 a QA/debug override endpoint was left reachable in production without any authentication or ownership check, and it accepted a sequential customer identifier.
Impact
An unauthenticated attacker could force A/B experiment variations on any user by enumerating sequential customer identifiers, or via a deeplink that makes a victim's own app apply the change; the report notes the visitor-id path alone is self-targeting because that token is unguessable.
What the attacker needed
No account needed; sequential customer identifier; victim opens a link (deeplink path)
How it was found
- Decompile the app and read the Retrofit API interfaces to map backend endpoints.
- Spot a deeplink handler that parses an experiment key and variation from the link.
- Trace the handler to a dev-prefixed force-variations endpoint and a resolved-experiments read endpoint.
- Open a crafted deeplink while logged out and observe the app call the force endpoint.
- Strip the request of all auth headers and use a fake visitor id, then read back to confirm the variation changed.
- Repeat using a sequential customer id to show any user can be targeted.
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.
Apps often run A/B tests, where different users see different versions of a feature to see which works better. This app had a leftover testing endpoint that let anyone set which version a user sees, with no login check at all. Worse, users were identified by a simple counting number, so anyone could guess other people's numbers and change their experience.
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.