Project

General

Profile

Actions

Feature #102079

open

CSP violation Event

Added by Henrik Jensen about 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Content Security Policy
Target version:
Start date:
2023-10-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
8.2
Tags:
csp
Complexity:
Sprint Focus:

Description

We would very much like to have an additional Event dispatch when an CSP violation happens.

In the case where some external javascript changes or someone adds some external javascript it would be nice
to be able to enable some kind of notification. For example by email or Slack or something else...

Our worry is that without any notification the violation could be unhandled for longer periods of time which could
leads to other and larger problems (loss of revenues, customer experience etc).

Our suggestion/idea is to dispatch an event right after the report is persisted. To keep it simple the whole report is dispatched, thus
making it the eventlisteners job to handle what/when/how notification are sent based on the incoming report.

Example gists:
https://gist.github.com/hdj-typoconsult/71a06fd4af042aed7d3efa4f3ba2c67b
https://gist.github.com/hdj-typoconsult/fbf3579a2ba38a347c1f488976116852


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #101797: Replace mutation mode extend by inherit & appendClosedOliver Hader2023-08-30

Actions
Actions #1

Updated by Claus Harup about 1 year ago

  • Category set to Security
Actions #2

Updated by Oliver Hader about 1 year ago

  • Tags set to csp
Actions #3

Updated by Oliver Hader about 1 year ago

Sounds good... maybe there's also a demand for pre-filtering these reports - e.g. having an event that allows to skip persisting particular reports (e.g. those coming from browser extensions).

Actions #4

Updated by Henrik Jensen about 1 year ago

Oliver Hader wrote in #note-3:

Sounds good... maybe there's also a demand for pre-filtering these reports - e.g. having an event that allows to skip persisting particular reports (e.g. those coming from browser extensions).

That is a good idea too.

Actions #5

Updated by Georg Ringer 5 months ago

  • Category changed from Security to Content Security Policy
Actions #6

Updated by Oliver Hader 3 months ago

  • Related to Bug #101797: Replace mutation mode extend by inherit & append added
Actions

Also available in: Atom PDF