No Rate Limit On Regenerate Password on Portswigger
The password regeneration endpoint on PortSwigger's site had no rate limit, so a logged-in user could send many requests in quick succession. Each request triggered a password regeneration email, flooding the user's inbox and potentially costing money or storage on paid email services.
Originally disclosed on HackerOne
- Disclosed after 26 hours
##Introduction
A little bit about Rate Limit: A rate limiting algorithm is used to check if the user session (or IP-address) has to be limited based on the information in the session cache. In case a client made too many requests within a given timeframe, HTTP-Servers can respond with status code 429: Too Many Requests.
##Description
Tested on FireFox Domain: https://portswigger.net/
Steps To Reproduce:
1: First Log In into your Portswigger Account
2: GoTo On Your Account Setting
3: Click On Change Password Button
4: Then it will take you to the given URL: https://portswigger.net/users/regeneratepassword
5: Click on Generate New Password Button
6: Intercept the request in your Burp Suite.The request like following will be generated:
POST /users/regeneratepassword HTTP/2
Host: portswigger.net
Cookie: ███ __███ __█████████
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------416617285834040720984250847584
Content-Length: 579
Origin: https://portswigger.net
Referer: https://portswigger.net/users/regeneratepassword
Te: trailers
-----------------------------416617285834040720984250847584
Content-Disposition: form-data; name="RequestVerificationToken"
█████████
-----------------------------416617285834040720984250847584
Content-Disposition: form-data; name="actionType"
Generate new password
-----------------------------416617285834040720984250847584
Content-Disposition: form-data; name="ajaxRequest"
true
-----------------------------416617285834040720984250847584--
7: Send the request to the Burp Intruder and drop the request and Turn Off the Intercept in Burp Suite.
8: Goto the Intruder.In Positions Tab, click on Clear.
9: In request, goto the Accept-Language: en-US,en;q=0.5.
And add position:
Accept-Language: en-US,en;q=0.§5§
10: Goto the Payloads Tab,select Numbers in Payload Type.
11: Input Range from 1 to 100 in Number Range of Payloads Option. And input step 1.
12: Then Start Attack.
13: Check the response of the request then you will be able to see the 200 Ok which means the request have been succcessfully executed.
13: Wait Some moment so that all the request executed successfully.Then lots of mail from Portswigger to regenerate your password should pop up. Soon your mail box will fill up by Portswigger mail.
Impact
If you are using any Email Service Software API Or some tool which costs you for your Email.Then this type of Attack can result you in Financial Lose and it can also slow down your services.It can take bulk of storage in sent mail.And this can lead to Business Risk.
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
Impact
An attacker could trigger a large volume of password regeneration emails, which may cost money or storage on paid email services and slow down those services.
What the attacker needed
A logged-in account; ability to intercept requests
How it was found
- Log in to the PortSwigger account.
- Open the account settings and choose the change password option.
- On the regenerate password page, click the button to generate a new password.
- Intercept the resulting request in Burp Suite.
- Send the request to Burp Intruder and set a payload position in a request header.
- Run the attack with a numeric payload range and observe the successful responses and the flood of emails.
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 caps how often an action can be done. Here the site let one logged-in account request a new password repeatedly with no cap, so each request sent another email to that account's inbox.
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.