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

Expired password reset links on alt.5nine.com still worked because the server only trusted the __VIEWSTATE token, allowing reuse to reset passwords indefinitely.

- Payout: $100
- Severity: low
- Program: Acronis
- Found by: m4rc10sz
- Disclosed: 2022-09-01
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1615790
- Library page: https://bugbountylibrary.com/r/h1%3A1615790
- Tags: area:web domain:web impact:ato kind:bounty platform:hackerone sev:low tech:dotnet technique:incomplete-fix vuln:access-control vuln:account-takeover vuln:auth-bypass

**Target:** ASP.NET password recovery/reset flow (passwordrecovery.aspx, TokenValidation.aspx) on alt.5nine.com
**Root cause:** The reset finalization endpoint (TokenValidation.aspx) authorized the password change solely based on the __VIEWSTATE value, which remained valid server-side even after the reset link expired; the actual token/expiry was not re-validated.
**Steps:**
1. Request reset at `https://alt.5nine.com/passwordrecovery.aspx` with victim email
2. Use the link and reset password once
3. Wait ~30 min until link shows 'Your validation request is invalid or expired'
4. Open the expired link page source, extract `__VIEWSTATE` value
5. URL-encode the value
6. POST to `/TokenValidation.aspx` with `__VIEWSTATE=<encoded>&ctl00%24mainContentId%24Password=hacked123&ctl00%24mainContentId%24ConfirmPassword=hacked123&ctl00%24mainContentId%24FinalizeRegistration=Submit`
7. Password is changed to hacked123 despite expired link
**How found:** Researcher noticed the expired-link page still rendered a form with a __VIEWSTATE value, hypothesized the server trusted that state rather than the token, and replayed it to the finalization endpoint.
**Exploitation:** Attacker with access to victim's inbox (or any old reset link) extracts the __VIEWSTATE from an expired reset page and replays it against TokenValidation.aspx to set a new password, taking over the account.
**Insight:** On ASP.NET reset flows, test whether the finalization endpoint validates the actual reset token or merely trusts __VIEWSTATE/MAC-protected state; expired pages often still emit usable viewstate that bypasses token expiry.

## Proof of concept (copied exactly from the original report)

**POST to TokenValidation.aspx with viewstate resets password**

```
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
```

