Skip to content
Business logic Disclosed report Beginner

Rate limit bypass on passport.acronis.work using X-Forwarded-For request header

The login endpoint trusted the X-Forwarded-For header, so an attacker could rotate the value to avoid the 429 rate limit and also appear to come from an allowed country. This let them keep submitting login attempts and reach the OTP step for employee accounts.

analyz3r Follow

Originally disclosed on HackerOne

  • Triaged in 10 days
  • Fixed in 10 days
  • Paid in 18 days
  • Disclosed after 4 months

Summary

On https://passport.acronis.work/ you cannot attempt to login even if you have a valid email address, and theres also a rate limit which can make it impossible to perform brute force attack to find valid emails, and even if you have a valid you still cannot attempt login since you are not from the same location of the victims location.

While brute force attacks and user enumeration are both at out of scope, but please remember this vulnerability is actually an access control issue that allows the attackers to bypass the restriction of attempting logins, but it also allows attackers to spoof their ip addresses, spoofing ip addresses may allow attackers to use your employee ip addresses and act as them from un-authenticated endpoints.

Since the malicious header allows attacker to bypass the rate limit, attackers may also be able to bypass the otp when trying to login to a victims account, while the otp is a 12 character otp, but its actually doesn't mean attackers aren't able to send much requests, and this is can lead to takeover your employee accounts which is actually a critical vulnerability.

So just in case, if you wanted to close the report or not interested, please remember that this vulnerability is actually an access control vulnerability not only brute forcing or user enumeration.

Steps To Reproduce

Steps to bypass the rate limit:

  1. try to attempt 10 failed logins, you must face the rate limit error, 429 status
  2. now simply add X-Forwarded-For: 12.34.56.78 header which is a malicious header, and you see you are able to submit 10 more requests
  3. if you wanted to brute force the endpoint, you can use burp suites intruder, brute force both the ip address and the email, you see you are still able to submit requests even after 300 requests

Steps to bypass the restriction on login with victims email addresses:

  1. in case you wanted to try to login to a victims account as attacker, such as [email protected] which I found on snov.io you can't if you aren't from bulgaria, you will be restricted due to you are not from bulgaria and you see that error ERR-B258C8
  2. on burpsuite, visit proxy settings, match and replace settings, replace nothing with X-Forwarded-For: 109.104.192.0 (the ip is from bulgaria)
  3. visit https://passport.acronis.work/login and try to login with the victims email, you see the restriction has been removed

Same bypass can be used to bypass the rate limit on the otp submit endpoint.

Recommendations

Disable X-Forwarded-For header

POC

Screen_Recording_2024-07-27_at_3.16.42_AM.mov From the original on HackerOne

Impact

Attackers able to bypass rate limit, also bypass restriction on attempting to login to employee accounts due to allowing a malicious http header.

Please let me know if you need more information, Thanks.

The original report as published on HackerOne, by analyz3r. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application trusted the client-supplied X-Forwarded-For header for rate limiting and geo-based access decisions instead of using the real connection address.

Impact

Attackers could bypass the login rate limit and the country restriction, which may let them keep guessing credentials and OTP codes and could lead to employee account takeover.

What the attacker needed

None

How it was found

  1. Send repeated failed logins until the endpoint returns a 429 rate limit error.
  2. Add an X-Forwarded-For header with an arbitrary address and observe that further submissions are accepted.
  3. Use an intruder tool to vary both the header value and the email, and note requests still succeed past 300 attempts.
  4. Try logging in with an employee email from outside the allowed country and see the restriction error.
  5. Set a match-and-replace rule in the proxy to send an X-Forwarded-For value from the allowed country.
  6. Load the login page and submit the employee email; the country restriction is no longer applied.

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 rate limit is a cap on how many tries a site allows, meant to slow down guessing. This site decided who was asking by reading a header the client can set freely, so the attacker just changed that value each time to look like a new visitor. The same trick made the site believe the request came from an allowed country.

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.

More by analyz3r

View all

1 more disclosed report, best first.

More from Acronis

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.