Skip to content
IDOR Write-up Beginner

How I Found And Bypassed A Newsletter Confirmation System Idor

A newsletter confirmation link used a sequential numeric identifier alongside a hash token, but the server did not actually validate the hash. An attacker could remove the hash and change the identifier to confirm subscriptions for arbitrary email addresses without access to their inbox.

kjulius Follow

Published on infosecwriteups.com

🌱 It Started Like Any Other Test… I was casually testing a target and came across a newsletter subscription feature.

kjulius, on infosecwriteups.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 confirmation endpoint trusted the user-supplied identifier and never verified the accompanying hash token or that the request belonged to the signup's owner.

Impact

Because identifiers were sequential, an attacker could confirm subscriptions for many email addresses without consent, potentially triggering spam complaints and damaging the company's reputation.

What the attacker needed

No account needed; victim email address known or guessed; sequential signup identifiers

The fix

The confirmation endpoint should validate the hash token and check that the request belongs to the signup it references before confirming.

How it was found

  1. Sign up to the newsletter and receive the confirmation email.
  2. Notice that the identifier in the confirmation link increases by one with each new signup.
  3. Swap identifiers between confirmation links; this fails with an error.
  4. Remove the hash parameter from the link and change the identifier.
  5. Open the modified link and see the subscription confirmed.

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.

When you sign up for a newsletter, the site emails you a link to prove the address is yours. This link contained a number identifying the signup and a secret code meant to prove the link was genuine. The site never checked the secret code, so anyone could edit the number in the link and confirm other people's signups without ever seeing their email.

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 kjulius

View all

11 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.