Skip to content
IDOR Write-up Beginner

Bug Hunting Journey: Discovering UID and Email Token Exposure in

Encoded URLs in tracking links and unsubscribe emails exposed user IDs and email tokens, and the unsubscribe endpoint accepted these values without further verification. An attacker could change another user's email notification settings, including disabling all notification types, by altering the uid and emailtoken parameters.

Faxcel Follow

Published on medium.com

Hello readers, Thank you for taking the time to read my write-up. Today, I want to share one of my bug hunting findings.

Faxcel, 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

Impact

An attacker could change another user's email notification preferences, including disabling all notification types, without any interaction from the victim; the report notes the issue was rated informative.

What the attacker needed

Access to a valid unsubscribe link; knowledge of victim's uid and emailtoken

How it was found

  1. Find tracking subdomain URLs indexed on VirusTotal.
  2. Decode the mg_x_url parameter to reveal UID and email token.
  3. Locate an unsubscribe link in a promotional email and intercept it with Burp Suite.
  4. Observe the unsubscribe URL contains uid and emailtoken parameters.
  5. Create a new account, extract its UID and email token, and replay the unsubscribe request.
  6. Change subtype values to disable all email notification types.

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 user ID and an email token are pieces of data that identify a specific person's account. The website's unsubscribe page trusted these values from the link without checking that the person using the link was the account owner. So someone could edit the link to point at a different user and turn off that person's email notifications.

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.