Skip to content
Info disclosure Disclosed report Beginner

Leaking of password reset token through referer

The reset page's URL contained the reset token, and loading an external font stylesheet sent that full URL, including the token, in the Referer header to the external service.

robin Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Disclosed after 42 days

When we request a password reset link, after that before Writing a new password, Going to an External link would cause Referer leakage...

Remote Address:74.125.68.95:443 Request URL:https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700 Request Method:GET Status Code:200 OK Request Headers :host:fonts.googleapis.com :method:GET :path:/css?family=Open+Sans:400italic,700italic,400,700 :scheme:https :version:HTTP/1.1 accept:text/css,/;q=0.1 accept-encoding:gzip,deflate,sdch accept-language:en-US,en;q=0.8 cache-control:max-age=0 referer:https://factlink-staging.herokuapp.com/users/password/edit?reset_password_token=8GbCsdRTX3yx3wZzwPuy user-agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 Query String Parametersview sourceview URL encoded family:Open Sans:400italic,700italic,400,700 Response Headers alternate-protocol:443:quic cache-control:private, max-age=86400 content-encoding:gzip content-length:387 content-type:text/css date:Tue, 27 May 2014 08:08:05 GMT expires:Tue, 27 May 2014 08:08:05 GMT server:GSE status:200 OK timing-allow-origin:* version:HTTP/1.1 x-content-type-options:nosniff x-frame-options:SAMEORIGIN x-xss-protection:1; mode=block

The original report as published on HackerOne, by robin. 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 reset token was placed in the URL query string and the page loaded third-party resources, causing the browser to leak the full URL in the Referer header.

Impact

The reset token was sent to the external font service in the Referer header, potentially exposing it to that third party.

What the attacker needed

Victim opens the reset link; page loads an external resource

How it was found

  1. Request a password reset link and open it.
  2. Before setting a new password, the page loads an external font stylesheet.
  3. Observe the request to the external font service includes the reset token 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.

When you visit a website, your browser often tells the next site where you came from by sending a 'Referer' header. If the address of the page you came from contains a secret, like a password reset code, that secret gets shared too. Here, the reset page loaded a font from another company, so the secret code was sent to that company.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by robin

View all

7 more disclosed reports, best first.

More from Factlink

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.