I Could Change Anyone’s Email Preferences — Without Logging In 😳
An email preferences endpoint accepted unauthenticated requests with only an email address, allowing anyone to change another user's subscription settings. A second endpoint returned preferences for any email without authentication, enabling confirmation and automation of the tampering.
That was the question that started it all. I wasn’t trying to break anything.
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 application treated the email address as sufficient proof of identity and did not require authentication or authorisation for preference changes or reads.
Impact
An attacker could silently unsubscribe users from all company emails, including security notifications or billing updates, and verify the changes at scale; the victim received no notification.
What the attacker needed
Victim's email address; no account needed
The fix
The system should require authentication and authorisation before changing or reading email preferences, and notify users of changes.
How it was found
- Log in and visit the Manage Preferences section, then change an email setting to observe the request.
- Replace your own email with a publicly listed company email and send the request.
- Observe a success response indicating the other email was unsubscribed.
- Query a second endpoint with the victim's email to see their current preferences and confirm the change.
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 let anyone change email notification settings for any email address without logging in. The only thing needed was the victim's email address, which is often public. A second page also showed those settings to anyone, so an attacker could check that the change worked.
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.