Race Condition allows to get more free trials and get more than 100 languages and strings for free
The trial activation endpoint could be hit many times at once, so a single user could obtain several free trials instead of one. This let the attacker multiply the free string and language limits granted by each trial.
b9cc1792602cc31402c20c9 Follow
Originally disclosed on HackerOne
- Fixed in 14 hours
- Disclosed after 31 days
Hi there,
As there is rate limit in the website, but it doesn't prevent users to take more than 1 trial which later leads to loss of the company, because by getting more trials I can get more strings and languages limit.
Steps to reproduce:
- Create an account on https://hosted.weblate.org and setup burp suite with your browser.
- Now, click on add project from the top + icon > select add a new translation project.
- Turn on the intercept and click on Gratis trial for commercial hosting > Start Trial
- Capture the request and send it to Turbo intruder.
- Add "Test: %s" header in the request and select race.py config.
- Start attack, you will get 6 trials. As projects are free and unlimited but you can get more strings limit. In one trial you get 50,000 strings limit, but with 6 trials you get 50,000 x 6 strings limit and more than 100 languages.
Affected HTTP request:
POST /trial/ HTTP/1.1 Host: hosted.weblate.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://hosted.weblate.org/ Content-Type: application/x-www-form-urlencoded Content-Length: 84 Origin: https://hosted.weblate.org Connection: close Cookie: __cfduid=d584084fe0b125b922a38b58143580cde1610884176; django_language=en; sessionid=csxoox0ruxn11cayzveitj55vnrh9v20 Upgrade-Insecure-Requests: 1
csrfmiddlewaretoken=D74cp8jYYfF2xMBJ3TtawMKpI7T6OU27yuUYwra8QWOmMaryGdqTjWTzU1a15Q2z
Impact
Get free trials and get more strings, languages limit.
Remediation: Set IP based rate limit and allow only 1 req for trial.
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 trial activation logic checked for an existing trial and then created a new one without an atomic lock, so concurrent requests all passed the check.
Impact
The attacker could obtain several free trials, multiplying the string and language limits beyond what a single trial allows.
What the attacker needed
A free account; an intercepting proxy and race tool
The fix
The trial activation should be rate limited per IP so only one trial request is allowed.
How it was found
- Create an account and set up an intercepting proxy.
- Start adding a new translation project.
- Intercept the request sent when starting the free trial.
- Send the captured request to a race-capable intruder tool.
- Add a header placeholder and select the race configuration.
- Launch the attack and observe multiple trials granted.
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.
A race condition is when many requests are sent at once and the site lets more through than intended. Here sending the trial request many times at once let several trials through, giving extra free resources meant to be given once.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.