Skip to content
Info disclosure Disclosed report Intermediate CVE-2017-7808

CSP frame-ancestors should not compare paths per CSP-3

Firefox compared paths in the CSP frame-ancestors directive, which the report says was not intended and creates a cross-origin information leak. An attacker could potentially learn information about paths on another origin.

Daniel Veditz Follow

Originally disclosed on Mozilla

  • Fixed in 13 days
  • Paid in 19 days
  • Disclosed after 13 days
Text
+++ This bug was initially created as a clone of Bug #1364859 +++

See bug 1364859 comment 5 and bug 1364859 comment 9: Firefox accepts origins with paths in frame-ancestors and compares against those paths. This is actually correct according to CSP-2 if you follow the definitions of host-source, but I don't think that was intentional: frame-ancestors was intended to be a "better  X-Frame-Options" which operates only on origins.

This creates a cross-origin info leak, though, and in the latest CSP spec frame-ancestors is explicitly defined as being only origin-based

The original report as published on Mozilla's Bugzilla, by Daniel Veditz. 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.

How it worked

Root cause

Likely the frame-ancestors implementation compared full origins including paths instead of comparing only the origin (scheme, host and port).

Impact

This could allow a cross-origin information leak, though the text does not describe the exact attack or any limits.

What the attacker needed

Victim uses Firefox; attacker can frame the target site

The fix

The frame-ancestors directive should be changed to compare only origins, ignoring any path, as required by the latest CSP specification.

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.

A website can use a security rule called frame-ancestors to say which other sites are allowed to embed it in a frame. Firefox was checking not just the site name but also the path part of the address, which could let an attacker learn something about paths on another site. The report says this was not the intended behaviour and that the newer standard says only the site name should matter.

What is Info disclosure?

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

More by Daniel Veditz

View all

13 more disclosed reports, best first.

More from Mozilla

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.