Email Verification Bypass & AI Credits Manipulation via simple Ma
The registration endpoint returned the full user object and accepted client-supplied values for sensitive fields such as email verification status and AI credit balances. An attacker could create an already-verified account and grant themselves a large number of AI credits without payment.
Hi everyone 👋, I hope you’re having a great day. In this post, I’ll show how I found a vulnerability in a self-hosted bug bounty program that allowed me to bypass email verification and manipulate AI credits just by modifying a request — and interestingly, this was discovered within the first minute of testing the…
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
The server bound client-supplied request fields directly to the user object without validating or restricting sensitive attributes, a mass assignment flaw.
Impact
An attacker could bypass email verification and obtain large amounts of AI credits without payment, potentially causing financial loss and feature abuse at scale.
What the attacker needed
Access to the registration endpoint
The fix
The server should not accept client-supplied values for sensitive fields such as verification status or credit balances; these should be set server-side only.
How it was found
- Create a normal account and intercept the registration request.
- Notice the response returns the full user object with sensitive fields.
- Reuse the response fields in the request and change verified from false to true.
- Change aiCreditsPaid to a large number and send the request.
- Observe the account is created as verified and with the large credit balance.
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.
When you sign up, the server should decide things like whether your email is confirmed and how many credits you have. Here, the server let the person signing up set those values themselves. That meant someone could skip email confirmation and give themselves lots of free credits.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.