Skip to content
Disclosed report CVE-2014-1591

CSP violation report contains sensitive data of other origin after redirect

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 50 days
  • Paid in 53 days
  • Disclosed after 50 days
Text
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36

Steps to reproduce:

1) Login to Facebook
2) Launch http://mallory.csrf.jp/cspleakage/
3) The page has one object tag in a page and the object tag accesses https://facebook.com/profile.php
4) Facebook redirects user agent to his/her profile page i.e., https://www.facebook.com/muneaki.nishimura in my case.


Actual results:

When a user launches the page http://mallory.csrf.jp/cspleakage/ , CSP violation report is posted to the report-uri because the object tag violates it's security policy.
Then, the "blocked-uri" parameter contains path and query string values of facebook.com, i.e., my name "muneaki.nishimura" is also recorded.

Suppose http://mallory.csrf.jp/cspleakage/ is a phishing site, then, user name who visited to the page can be identified by blocked-uri field.

As a proof of concept of this phenomenon, you can check the CSP report which sent by your browser from following page.
http://mallory.csrf.jp/cspleakage/log.txt



Expected results:

"blocked-uri" parameter has not to contain path and query string parameter of other origin than protected resources because it can be used for retrieving sensitive information e.g., OAuth token or session ID.

Similar issue was once fixed on Firefox 14 (see below).
https://www.mozilla.org/security/announce/2012/mfsa2012-53.html

However, there are still remaining issues in the latest branch.

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity security bug in DOM: Security. Mozilla made it public on 7 November 2014 as CVE-2014-1591.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

More by Muneaki Nishimura

View all

74 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.