Skip to content
Access control Disclosed report Beginner

A malicious actor could rotate tokens of a victim, given that he knows the victim's token ID

The Roll Token API endpoint lacked proper authorization checks, allowing an attacker who knew a victim's token ID to rotate that token. This could cause a denial of service for the token owner and any applications relying on the token.

esx Follow

Originally disclosed on HackerOne

  • Triaged in 2 days
  • Fixed in 7 days
  • Paid in 2 days
  • Disclosed after 12 months

Summary by the program

Due to lack of proper authorization checks a malicious actor was able to rotate API token of a different user using the Roll Token API method leading to DoS for the token owner and the applications that use it. Exploitation of this vulnerability required prior knowledge of the victim's token ID (in UUID format). The fix was released by Cloudflare Engineering enforcing proper access controls for this endpoint.

The original report as published on HackerOne, by esx. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Roll Token API endpoint did not verify that the authenticated user owned the token being rotated.

Impact

An attacker could rotate a victim's API token, causing a denial of service for the token owner and applications using it, but only if the attacker already knew the victim's token ID.

What the attacker needed

Knowledge of victim's token ID (UUID)

The fix

The fix enforced proper access controls for the endpoint.

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 report has not been written yet. The Original tab links to the source.

An API token is like a password that lets a program access an account. The system that rotates (replaces) these tokens did not check whether the person asking owned the token. So if someone knew the token's ID, they could replace it, breaking the original owner's access.

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.

More from Cloudflare Public Bug Bounty

View all

The newest disclosed reports for this program.

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.