Referrer policy bypass with srcdoc
Reported by
s.h.h.n....@gmail.com,
Sep 6 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36 Steps to reproduce the problem: 1. Go to https://test.shhnjk.com/refby.html 2. https://shhnjk.com/ gets referrer What is the expected behavior? Referrer wouldn't be sent because of referrer policy attribute or meta tag. What went wrong? srcdoc is not considered in scope of referrer policy via meta nor attribute. Did this work before? N/A Chrome version: 61.0.3163.79 Channel: stable OS Version: OS X 10.12.6 Flash Version:
,
Sep 7 2017
Notably, Firefox 57.0a1 does not apply the RefererPolicy (specified on the outer IFRAME) to the frame in the srcdoc. Unlike Chrome, Firefox also does not apply a META REFERRER policy from the outer page to the srcdoc content.
,
Sep 8 2017
https://html.spec.whatwg.org/#script-settings-for-window-objects says: The referrer policy Let document be the Document with which window is currently associated. While document is an iframe srcdoc document and document's referrer policy is the empty string, set document to document's browsing context's browsing context container's node document. Return document's referrer policy.
,
Sep 12 2017
estark: Assigning to you so that this has an owner. Seems to be a low severity bug though.
,
Nov 10 2017
,
Nov 15 2017
the referrerpolicy attribure only controls the referrer used to load the resource of the respective element, however, for an iframe, it does not apply to the iframe's content.
,
Nov 30 2017
,
Feb 22 2018
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by elawrence@chromium.org
, Sep 7 2017Components: Blink>SecurityFeature>Referrer