Add arbitrary value in reset password cookie
The reset token expiry was stored in a client-side cookie the user could edit. Changing the date made the page show a longer expiry, though the text does not confirm the token itself stayed valid.
- Disclosed after 5 months
I recently discovered that we can add arbitery value in reset pass token and compromise the life time unlimitedly ..
After opening a reset password link I got these cookies ....for token expires timeout .
{ "domain": ".app.legalrobot.com", "expirationDate": 1504618468.82726, "hostOnly": false, "httpOnly": false, "name": "tokenExpires", "path": "/", "sameSite": "no_restriction", "secure": true, "session": false, "storeId": "0", "value": "Tue%20Sep%2005%202017%2013%3A35%3A30%20GMT%2B0000%20(UTC)", "id": 2 }
There was a warning in a page like .....
Your password reset token expires in 21 minutes...
okay so I decoded the value and changed year to 2019 instead of 2017 ...and it's all done ....miracle i got this page with different warning ...
Your password reset token expires in 2 years
okay there are some issue like content spoofing , attacker can do this again and again , generally after 21 minutes token must experies but after changing to two years it won't ....
attaching screenshot here ....
If you can please take a another look #265652 i have attached a logical bug with fully video poc
thanks again
Attachments

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 application trusted a client-side cookie to enforce the token expiry time instead of checking expiry on the server.
Impact
An attacker could repeatedly edit the cookie so the page shows a much longer token expiry than intended.
What the attacker needed
A password reset link; ability to edit cookies
How it was found
- Open a password reset link and observe the tokenExpires cookie.
- Decode the cookie value and change the year from 2017 to 2019.
- Reload the page and see the warning now say the token expires in 2 years.
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 reset a password, the site gives your browser a cookie saying when the reset link stops working. This report found the cookie could be edited, so the page showed the link lasting years instead of minutes.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.