Skip to content
Smuggling / CRLF Disclosed report Beginner

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.

cuso4 Follow

Originally disclosed on HackerOne

  • 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

Screenshot_at_2017-09-05_18-47-54.png
Screenshot_at_2017-09-05_18-47-54.png From the original on HackerOne

The original report as published on HackerOne, by cuso4. 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 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

  1. Open a password reset link and observe the tokenExpires cookie.
  2. Decode the cookie value and change the year from 2017 to 2019.
  3. 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.

More by cuso4

View all

2 more disclosed reports, best first.

More from Legal Robot

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

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.