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