How I find vulnerability can make X(Twitter) lose millions of dollars
The x.ai payment system did not immediately block a team account after credits were exhausted, leaving a 30-minute window to use the service without paying. By using hidden parameters to maximise token generation per request, an attacker could exploit this window to incur large costs for X.
Published on l4zyhacker.medium.com
You can read for free here https://l4zyhacker.medium.com/how-i-find-vulnerability-can-make-x-twitter-lose-millions-of-dollars-41fd5f52c5a3
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 payment system enforced credit limits with a delay, allowing usage to continue for 30 minutes after credits were exhausted.
Impact
An attacker could exploit the 30-minute window to use the service without paying, potentially costing X millions of dollars if maximised with hidden parameters.
What the attacker needed
A team account with $5 credit; knowledge of hidden parameters
How it was found
- Exhaust all credits on a team account.
- Observe that the account is not blocked immediately but after 30 minutes.
- Use hidden parameters to maximise token generation per request.
- Send requests within the 30-minute window to incur large costs.
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 use an online service, you usually pay for what you use. Here, the service did not stop the account right away after the credit ran out, so for half an hour you could keep using it for free. The attacker found a way to make each request use as many tokens as possible, which would cost the company a lot of money.
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.