Closed
Bug 1236221
Opened 9 years ago
Closed 2 years ago
CSP and CSPRO violation reports rewrite the 'self' keyword with domain.
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1474537
People
(Reporter: bugzilla, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [domsecurity-backlog])
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Steps to reproduce:
Issue a CSP that uses the 'self' keyword.
Cause a violation of the CSP and a report will be sent to value specified in report-uri.
In the report that is sent, 'self' is re-written as the scheme and domain name of the site.
Actual results:
When the following policy is issued:
Content-Security-Policy: default-src 'self'
Reports contain the following:
"original-policy":"default-src https://scotthelme.co.uk/"
Expected results:
When the following policy is issued:
Content-Security-Policy: default-src 'self'
Reports contain the following:
"original-policy":"default-src 'self'"
Reporter | ||
Comment 1•9 years ago
|
||
According to the spec, the value of "original-policy" should be the policy as received by the UA.
http://www.w3.org/TR/CSP2/#violation-report-original-policy
Also, other keywords remain the same so this would be consistent across all keywords.
Comment 2•9 years ago
|
||
Component: Untriaged → DOM: Security
Product: Firefox → Core
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to Gingerbread Man from comment #2)
> Bug 1212429?
Nope, this bug is regarding the value 'self' being modified in the resulting CSP report about a violation.
Updated•9 years ago
|
Updated•2 years ago
|
Severity: normal → S3
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•