Improper Restriction of Authentication Attempts in cURL
The report claims that cURL does not limit failed authentication attempts, so an attacker can repeatedly try passwords without lockout or delay. If a correct password is found, the attacker gains unauthorised access.
Originally disclosed on HackerOne
- Disclosed after 4 months
Summary:
The authentication mechanism in cURL does not properly restrict the number of failed authentication attempts, allowing an attacker to brute-force credentials. This issue affects authentication-based requests and could lead to unauthorized access if an attacker successfully guesses a valid password.
Affected Version:
cURL version: [Specify version] Platform: [Specify OS and environment] (curl -V output: [Attach output])
Steps To Reproduce:
Use a valid username but an incorrect password to make an authentication request via cURL:
curl -u valid_user:wrong_password http://target-url.com
Observe that there is no lockout or delay after multiple failed attempts.
Automate the process using a brute-force script:
for i in {1..1000}; do curl -u valid_user:password$i http://target-url.com; done
If a correct password is found, the attacker gains unauthorized access.
Supporting Material/References:
[Attach logs or screenshots showing multiple failed attempts without any lockout]
[Any relevant documentation that supports this claim]
Impact:
Allows brute-force attacks against user accounts.
Potential unauthorized access leading to data breaches.
Can be exploited remotely if authentication is exposed.
Recommended Fix:
Implement rate-limiting after multiple failed authentication attempts.
Introduce CAPTCHA or multi-factor authentication (MFA).
Enforce temporary account lockouts after a predefined number of failures.
Severity: Critical 🚨
This vulnerability can be exploited remotely, leading to unauthorized access, making it a high-impact security risk
Impact
Allows brute-force attacks against user accounts.
Potential unauthorized access leading to data breaches.
Can be exploited remotely if authentication is exposed.
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 authentication mechanism lacks rate limiting or lockout after repeated failed attempts.
Impact
Allows brute-force attacks against user accounts, potentially leading to unauthorised access and data breaches if authentication is exposed remotely.
What the attacker needed
Valid username; authentication exposed remotely
The fix
The report recommends rate-limiting, CAPTCHA or MFA, and temporary lockouts after repeated failures.
How it was found
- Use a valid username but an incorrect password to make an authentication request via cURL.
- Observe that there is no lockout or delay after multiple failed attempts.
- Automate the process using a brute-force script.
- If a correct password is found, the attacker gains unauthorized access.
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.
This report says that a tool called cURL lets someone try many passwords in a row without slowing down or blocking them. That means an attacker could keep guessing until they find the right password. The report suggests adding delays, CAPTCHA, or account lockouts to stop this.
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.