Skip to content
Access control Write-up Beginner

How I Found a P2 Broken Access Control Bug via a Tokenized URL

A tokenized verification URL rendered a full user profile page without requiring authentication, exposing sensitive financial and personal information. An attacker who possessed such a URL could view private data without logging in.

medium.com

Published on medium.com

During routine bug bounty reconnaissance on a scoped target, I focused on identifying endpoints that commonly involve trust-based workflows, such as verification links, callbacks, and tokenized URLs. These areas often rely on assumptions about user intent and, as a result, may miss strict access control enforcement.

Sivasankar Das, 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 verification endpoint treated possession of the token as sufficient authorisation and returned a full profile instead of a minimal confirmation, without enforcing authentication or ownership checks.

Impact

The exposed data included user-specific details that should only be accessible to authenticated users, which could lead to unauthorised disclosure of private and financial information and increased risk of targeted social-engineering attacks.

What the attacker needed

Possession of a valid tokenized URL; no authenticated session required

The fix

Verification endpoints should enforce proper authorisation and return minimal data rather than full user profiles.

How it was found

  1. Enumerate subdomains and filter to live hosts.
  2. Collect URLs from crawling and historical sources.
  3. Review URLs for verification-style patterns containing keywords such as verified, confirm, or token.
  4. Open a private/incognito browser window to ensure no authenticated session.
  5. Access the tokenized URL directly and observe that a verified user profile page is rendered.

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 verification link is meant to confirm something, like an email address, and often contains a long random code (a token) in the web address. Here, anyone who had that link could see a user's full profile, including financial details, without logging in. The site trusted the link itself instead of checking who was asking.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.