“One Click, No Consent” — How I Unsubscribed Any User f
The unsubscribe link contained a Base64-encoded JSON token with a user_id that was not validated server-side. An attacker could change the user_id, re-encode the token, and unsubscribe any user from vendor emails without logging in.
Published on cybersecuritywriteups.com
(Free Article Link)
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 server trusted a client-supplied, merely encoded (not signed) identifier in the unsubscribe token and never checked that the requester owned that account.
Impact
Any user could be unsubscribed from vendor emails without consent, causing them to miss receipts, invoices and product keys, and opening the door to phishing or fraud.
What the attacker needed
No account needed; victim's user_id known or guessable; attacker can craft a URL
How it was found
- Open an unsubscribe link from a vendor email and notice the long Base64-like token at the end.
- Decode the token to reveal JSON containing user_id, vendor_id and type.
- Change the user_id to another user's value and re-encode the JSON in Base64.
- Replace the token in the unsubscribe URL and visit it without logging in.
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.
An unsubscribe link is meant to let one person stop their own emails. Here the link carried the user's identity in a form that could be edited, and the server trusted it without checking who was asking. So anyone who changed the number in the link could stop another person's emails.
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.