Skip to content
Access control Write-up Beginner

Critical Broken Access Control: Public Tokens Enable Sensitive Actions

A payment platform's chatbot accepted unauthenticated requests to cancel subscriptions and issue refunds, and allowed the refund recipient to be changed to an arbitrary email address. An attacker could use a publicly exposed purchase token to perform these sensitive actions without logging in.

thomasyoussef Follow

Published on medium.com

Hello friend, I’m Thomas Youssef, a bug bounty hunter. Let’s unravel the details of this vulnerability right away.

Thomas Youssef, 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 chatbot's backend actions lacked authentication and authorization checks, trusting the token in the URL as sufficient proof of identity.

Impact

An attacker could cancel subscriptions and redirect refunds to their own email address without authentication, potentially causing financial loss and service disruption.

What the attacker needed

A publicly exposed purchase token; access to the chatbot interface

How it was found

  1. Find purchase-related endpoints with tokens exposed on VirusTotal and Wayback URLs.
  2. Open the chatbot and ask it to cancel a subscription or issue a refund.
  3. Observe that the chatbot performs the action without any login.
  4. Instruct the chatbot to send the refund to an attacker-controlled email address.

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 chatbot on a payment website was allowed to cancel subscriptions and send refunds without checking who was asking. The only thing needed was a link containing a token, which is like a temporary password that appears in a web address. Because the chatbot did not verify the user, anyone who found such a link could ask it to refund money to their own email address.

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.