From 6b9fdc97d9a8acfe00b62f5000d83f55ee13b5e6 Mon Sep 17 00:00:00 2001 From: Mike West Date: Thu, 23 Mar 2017 14:53:05 +0100 Subject: [PATCH] Note that violation reports are attacker controlled. --- index.html | 7 +++++++ index.src.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/index.html b/index.html index 15225330ca..7d67e8f078 100644 --- a/index.html +++ b/index.html @@ -4820,6 +4820,11 @@

+

Note also that violation reports should be considered attacker-controlled data. Developers who + wish to collect violation reports in a dashboard or similar service should be careful to properly + escape their content before rendering it (and should probably themselves use CSP to further + mitigate the risk of injection). This is especially true for the "script-sample" property of + violation reports, and the sample property of SecurityPolicyViolationEvent, which are both completely attacker-controlled strings.

8. Authoring Considerations

@@ -6779,6 +6784,7 @@

5.3. Report a violation (2) +
  • 7.4. Violation Reports