Cross-Domain IDOR in Email Preferences Management via Reusable em
The email preferences endpoint used a deterministic hash of the email address as an identifier, and the same hash was valid across all regional domains. An attacker could register an account with a victim's email on a different regional site, obtain the hash, and then use it to change the victim's email preferences on the main site without authentication.
Published on medium.com
The target platform (referred to in this write-up as ShopX) is massive global e-commerce platform that operates across dozens of countries (TLDs) like .com, .de, .no, etc. It allows users to purchase everything.
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 email preference service used a deterministic hash of the email address as the sole identifier and did not enforce that the requester owned that email or was authorised for the specific domain.
Impact
An attacker could change email preferences (e.g., unsubscribe or opt-in) for any user on any regional domain, potentially at scale, without authentication.
What the attacker needed
No email verification required; attacker can register with victim's email; victim's email address known
How it was found
- Register a new account on a different regional domain using the victim's email address.
- Navigate to the email preferences page on that regional site and intercept the request to obtain the emailaddress hash.
- Send a request to the shared email preferences endpoint with the stolen hash and the desired country and language parameters to modify the victim's preferences.
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 used a special code (a hash) to identify each user's email preferences. The same code worked on all of the company's country-specific sites. Because anyone could sign up with any email address without proving they owned it, an attacker could get the code for someone else's email and then change that person's email settings on another site.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.