Skip to content
Business logic Disclosed report Intermediate

Bypassing creation of API tokens without email verification

Cloudflare required email verification to create API tokens, but an account that changed its email address without verifying the new one could still rotate existing API tokens. This allowed an attacker with access to an unverified account to maintain or rotate API tokens despite the verification requirement.

boy_child_ Follow with bb405fb0aac80660a6fddce and theprinciple

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 43 days
  • Paid in 8 days
  • Disclosed after 3 months

Summary by the program

Cloudflare restricts the creation of API Tokens to email-verified accounts, however, if an email-verified account changed their account's email address without verifying the new email, previously created API tokens remained valid and could be rotated in the Dashboard. Cloudflare's Engineering Team changed the process for changing an account's email and required verification before the completion of the email change procedure.

The original report as published on HackerOne, by boy_child_. 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 email-change process did not re-check verification status before allowing API token rotation, so the verification requirement was only enforced at token creation, not at later token management.

What the attacker needed

An email-verified Cloudflare account; ability to change account email; existing API tokens

The fix

Cloudflare changed the email-change process to require verification before the email change is completed.

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.

The report found that after changing your account email to one you had not proven you owned, old tokens still worked and could be rotated, so the email check could be sidestepped.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by boy_child_

View all

4 more disclosed reports, best first.

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.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.