My First High-Impact Bug: Unauthenticated Unsubscribe via Token
An unsubscribe endpoint accepted a base64-encoded token containing an email address and user ID without any signature or authentication check. An attacker could modify the token to unsubscribe any email address without logging in.
Published on medium.com
I’m super happy to share that I’ve submitted my first high-severity bug as a bug bounty hunter! 🎯 It was marked as a duplicate, but I still earned 5 points and, more importantly, learned so much in the process. This bug combined IDOR (Insecure Direct Object Reference) with unauthenticated access and sensitive data…
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 trusted a client-supplied token that was only base64-encoded and not signed or verified server-side, allowing tampering.
Impact
An attacker could unsubscribe any user from emails without authentication, and email addresses and internal IDs were exposed in plain text.
What the attacker needed
No account needed; victim's email address known or guessed
The fix
The token should be signed (e.g., HMAC or JWT) and verified server-side, authentication should be required, and PII should not be exposed in URL parameters.
How it was found
- Find an unsubscribe URL with a base64-encoded parameter during reconnaissance.
- Decode the parameter to see a JSON object with email, id, and timestamp.
- Modify the email value and re-encode the JSON to base64.
- Visit the modified URL and observe that the page pre-fills the attacker-controlled email and allows unsubscribing without login.
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 simple encoded string (base64) to identify which email to unsubscribe. Because the string was not signed or checked, anyone could change the email inside it and make the site unsubscribe someone else without needing an account.
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.