Chaining Bugs: From Unauthenticated PII Disclosure to Mass Account Takeover in a Major E-Commerce…
An unauthenticated API endpoint leaked third-party sellers' personal and business data, and a separate recovery flow accepted predictable user IDs derived from email prefixes. An attacker could scrape seller PII and trigger password resets for a subset of supplier accounts, with a Host header trick bypassing WAF rules.
Published on medium.com
As security researchers, we know that the most devastating vulnerabilities rarely exist in a vacuum. They are often the result of chaining low-to-medium severity logic flaws until they snowball into a critical compromise.
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 missing authentication on a product-details API plus predictable user IDs derived from email prefixes in the password-recovery flow.
Impact
An attacker could scrape seller PII at scale and trigger password resets for a subset of supplier accounts, though the text only claims a reset was triggered, not that accounts were fully taken over.
What the attacker needed
No authentication needed; target uses predictable user IDs; victim has an account on the supplier portal
The fix
The text does not state a fix was applied; it recommends strict authorization checks, randomised identifiers, and stronger recovery-flow protections.
How it was found
- Query an unauthenticated catalog endpoint to obtain product IDs.
- Request product details with those IDs to receive seller PII including business number, phone and email.
- Use the leaked fields against the find-user-id recovery endpoint to confirm the account exists.
- Derive the userId from the email prefix and call the forgot-password endpoint to trigger a reset.
- Send requests to the API gateway with a forged Host header to bypass WAF rules.
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.
Some web addresses (APIs) return data without checking who is asking. Here, one such address gave out sellers' names, phone numbers and emails, and another part of the site let anyone start a password reset if they knew a guessable username. Together, someone could collect seller details and reset some sellers' passwords.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.