I received a bounty of $60 for finding a critical bug in the patient management system.
The password reset flow did not properly validate the mobile number parameter, allowing an attacker to reset any user's password by modifying the request. This could lead to account takeover and access to sensitive patient data.
Published on infosecwriteups.com
Krishnadev P Melevila
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could take over any user account, leading to unauthorised access to sensitive patient data.
What the attacker needed
A valid mobile number registered on the platform; ability to intercept HTTP requests; knowledge of victim's mobile number
The fix
The password reset process should verify that the mobile number belongs to the user requesting the reset, for example by tying the reset token to the session or requiring the OTP to be sent to the same number.
How it was found
- Go to the login section and click 'Forgot Password'.
- Enter a valid mobile number that is already registered.
- Enter the attacker's OTP and submit.
- Set a new password and submit while intercepting the request.
- Modify the mobile parameter in the intercepted request to the victim's number.
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 write-up has not been written yet. The Original tab links to the source.
When you forget your password, a website usually sends a code to your phone to prove it's you. Here, the website trusted the phone number you typed in without checking it properly, so an attacker could type someone else's number and set a new password for that person's account. This means they could take over the account and see private health information.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.