Skip to content
IDOR Write-up Beginner

IDOR on Unsubscribe emails to $200 bounty.

The unsubscribe link in a price-alert email carried a base64-encoded payload containing the user identifier, protected only by a token. By decoding the payload, changing the user identifier and re-encoding it, an attacker could unsubscribe any other user from the mailing list.

shbugger1 Follow

Published on medium.com

Bounty$200 View original

Recently I got an invitation from a financial website. I registered my account but initially was unable to find anything.

shbugger1, 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 server trusted a client-supplied, merely base64-encoded user identifier in the unsubscribe link instead of tying the action to the authenticated user or a properly signed value.

What the attacker needed

A registered account; receipt of a price-alert email; knowledge of a victim's user identifier

How it was found

  1. Receive a price-alert email from the site and inspect the unsubscribe link
  2. Notice the link contains a base64-encoded value followed by a token
  3. Decode the value to reveal a user identifier and preference fields
  4. Change the user identifier, re-encode the value and rebuild the URL
  5. Visit the modified URL and observe the unsubscribe succeeded

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.

Many websites put information into a link in a scrambled (encoded) form so it can be read back later. Here the link that lets you stop receiving emails contained the account identifier in that scrambled form, and the site trusted whatever identifier was inside. Because the scrambling is easy to reverse, someone could swap in another person's identifier and stop that person's emails without their permission.

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.

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.