Skip to content
IDOR Write-up Beginner

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.

Sauravkrish Follow

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…

@Sauravkrish, on medium.com

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

  1. Find an unsubscribe URL with a base64-encoded parameter during reconnaissance.
  2. Decode the parameter to see a JSON object with email, id, and timestamp.
  3. Modify the email value and re-encode the JSON to base64.
  4. 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.

More by Sauravkrish

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.