Skip to content
Account takeover Disclosed report Intermediate

Any expired reset password link can still be used to reset the password

Expired password reset links could still be used to reset a user's password because the server relied solely on a hidden form field (__VIEWSTATE) that remained valid indefinitely. An attacker with access to a victim's inbox could use any old reset link to change the password.

m4rc10sz Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Triaged in 4 hours
  • Fixed in 56 days
  • Paid in 4 hours
  • Disclosed after 2 months

Hello Aronis team!

When requesting a password reset link at https://alt.5nine.com/passwordrecovery.aspx and using it, after a short time the link becomes invalid. When I open the link I get the message: "Your validation request is invalid or expired" But it is still possible to use it to reset the password, because it is still linked with the "__VIEWSTATE" parameter on the server side and this is the only value needed in the password reset process, and it can be used infinite times to reset the password. So in short, you use the reset link to get the value of "__VIEWSTATE" and use it to reset the password

Therefore, in a scenario where an attacker has somehow gained access to the victim's inbox, they can use any expired link to change the user's password.

##STEPS TO REPRODUCE

1- Go to https://alt.5nine.com/passwordrecovery.aspx 2- Enter your account email and click "reset" 3- Use the link and reset your password 4- Wait some time (about 30 min) for the link to expire, as shown below

1.jpg
1.jpg From the original on HackerOne

(just to confirm it's expired and you can use it to reset the password anyway)

5- Now view the page source code, search for "viewstate" and capture its value

2.png
2.png From the original on HackerOne

6- Encode it's value as url --> https://urlencode.org 7- Now use the encoded value in the following request

POST /TokenValidation.aspx HTTP/2
Host: alt.5nine.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 405

__VIEWSTATE=<viewstate-here>&ctl00%24mainContentId%24Password=hacked123&ctl00%24mainContentId%24ConfirmPassword=hacked123&ctl00%24mainContentId%24FinalizeRegistration=Submit

8- And the password will be changed to "hacked123"

3.jpg
3.jpg From the original on HackerOne

##References https://hackerone.com/reports/898841 https://hackerone.com/reports/772886

Impact

Password reset link must become completely useless after used, to prevent someone malicious who has access to it use it to reset the password, in this case the user will lose the account if the attacker has access to any old link

The original report as published on HackerOne, by m4rc10sz. 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 server validated the password reset using only a hidden form field (__VIEWSTATE) that did not expire or become invalid after use, instead of checking a proper one-time token.

Impact

An attacker who has access to the victim's inbox could use any expired reset link to change the victim's password and take over the account.

What the attacker needed

Attacker has access to victim's inbox; victim has requested a password reset

The fix

The password reset process should use a single-use, time-limited token that is invalidated after use or expiry, rather than relying on a hidden form field.

How it was found

  1. Go to the password recovery page.
  2. Enter your account email and click reset.
  3. Use the link and reset your password.
  4. Wait about 30 minutes for the link to expire.
  5. View the page source, search for viewstate and capture its value.
  6. URL-encode the value and send it in a POST request to the token validation endpoint with new password fields.

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.

When you forget your password, a website emails you a special link to set a new one. Normally that link should stop working after you use it or after some time. Here, the link appeared to expire, but the website still accepted a hidden value from the page to change the password, so anyone who saw an old link could still 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 Acronis

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.