Password reset token leakage through referrer at https://app.c2fo.com/password/reset/
The reset page linked to a third-party site, so clicking it sent the full reset URL including the token in the Referer header; the third-party operator could collect tokens from access logs.
Originally disclosed on HackerOne
- Disclosed after 12 days
Hi there,
another bug I came across. There's a possible password reset token leakage on the password reset page.
###Steps to reproduce
- Go to https://app.c2fo.com/password-reset and request a new password (with your existing test account)
- Click on the password reset link which you'll receive via email
The url bar should look like that: https://app.c2fo.com/password/reset/XXXX0de607bdbc2df949a7da49fabcfXXXXX
So far so good. You should see the logo of "Truste certified blabla" at the bottom.
The logo is linked to the following url: https://privacy.truste.com/privacy-seal/Pollen,-Inc-/validation?rid=46f28cc9-128f-431a-8fff-6d19427150d9.
As you can see it's a link from a "https" page to a "https" url. That means that the referrer will be send to the target. That means that the password reset token will be leaked to the "truste"-company through the referrer.
Clicking on the logo should send the following request (including the referrer):
GET /privacy-seal/Pollen,-Inc-/validation?rid=46f28cc9-128f-431a-8fff-6d19427150d9 HTTP/1.1
Host: privacy.truste.com
[...snip...]
Referer: https://app.c2fo.com/password/reset/XXXX0de607bdbc2df949a7da49fabcfXXXXX
[...snip...]
Connection: keep-alive
A bad boy webmaster at the "truste"-company could collect the reset urls/token from the access.log.
###How to fix I'd recommend to either remove the logo from this particular page or remove the link to the third-party company.
Best regards, Sebastian
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 reset page included a link to a third-party site without preventing the full URL (containing the token) from being sent in the Referer header.
Impact
A malicious operator of the third-party site could collect reset tokens from access logs.
What the attacker needed
Victim clicks the third-party logo; attacker controls the third-party site
The fix
The logo should be removed from the reset page, or its link to the third-party company should be removed.
How it was found
- Request a password reset for an existing test account.
- Open the reset link received by email.
- Observe the reset token in the page URL.
- Click the third-party logo at the bottom of the page.
- The request to the third-party site includes the reset URL in the Referer header.
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.
The reset page linked to an outside company, so clicking it sent the secret reset code in the Referer header. Anyone reading that company's logs could collect the code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.