Skip to content
Account takeover Disclosed report Beginner

Reauthentication for changing password bypass

The application required re-authentication to change a password but did not require it to add, confirm, or make an email address primary. An attacker with a hijacked session could add their own email, make it primary, and then reset the password without knowing the old one.

viber Follow

Originally disclosed on HackerOne

  • Triaged in 25 hours
  • Fixed in 16 months
  • Disclosed after 17 months

Hello There So Libra Pay has this security system because of which if a malicious user tries to change the password of a logged in account, whether by session hijack or anything else he will be asked to re-enter the password before he can change it. But this loop hole I found in the system using which he/she can change it without even knowing the old password. How? Here is the reproduction steps:

Step 1. Go to accounts settings. Step 2. Add an email address to the email which we have access to(Remember adding an email doesn't require you to re-enter password but changing password does) Step 3. Confirm the email address. Step 4. Make it primary email. (Even this doesn't require you to re-enter password) Step 5. Now we can change the password by reseting it through the new ema

I have checked for this in several other platforms as well but most of them were smart enough to ask me for entering password before I could change or add email address. May be you can implement the same.

Thank you. Baibhav Anand Jha. Security Researcher.

Impact

A malicious user will be able to change the password without knowing the old password.

The original report as published on HackerOne, by viber. 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 re-authentication check was only applied to the password-change action and not to the email add, confirm, and make-primary actions, allowing the attacker to control the reset channel.

Impact

An attacker with access to a logged-in session could change the account password without knowing the old one.

What the attacker needed

Access to a logged-in session; attacker controls an email address

The fix

The application should require re-authentication before adding, confirming, or making an email address primary, as the reporter suggested.

How it was found

  1. Go to the account settings page.
  2. Add an email address that the attacker controls.
  3. Confirm the newly added email address.
  4. Make the new email address the primary one.
  5. Use the password reset flow through the new primary email to set a new password.

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.

Some websites ask you to type your current password again before letting you change it, to stop someone who has stolen your logged-in session. Here, the site forgot to ask for that password when adding a new email address. So an attacker could add their own email, make it the main one, and then use the normal 'forgot password' flow to take over the account.

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.

More from Liberapay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.