Project

General

Profile

Actions

Bug #101165

closed

Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "effective-directive" in typo3/cms-core/Classes/Middleware/AbstractContentSecurityPolicyReporter.php line 75

Added by Daniel Siepmann over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Security
Target version:
Start date:
2023-06-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have this issue on my 12.4.2 mentioned within "Administration log" module.
I've enabled feature "Security: frontend enforce content security policy"

I'm not able to properly reproduce the issue, not sure what circumstances are necessary to not provide the key.

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "effective-directive" in vendor/typo3/cms-core/Classes/Middleware/AbstractContentSecurityPolicyReporter.php line 75 | TYPO3\CMS\Core\Error\Exception thrown in file /home/daniels/webs/daniel-siepmann.de/htdocs/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php in line 138. Requested URL: https://daniel-siepmann.de/@http-reporting?csp=report&requestTime=1687638982072057


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #100912: Show CSP report source-file & user-agentClosedOliver Hader2023-05-23

Actions
Actions #1

Updated by Oliver Hader over 1 year ago

  • Has duplicate Bug #100912: Show CSP report source-file & user-agent added
Actions #2

Updated by Oliver Hader over 1 year ago

In case, effective-directive (preferred W3C property) is not given, but violated-directive (legacy W3C property) is, that value is taken - this still can happen in old browser versions.

The new class https://review.typo3.org/c/Packages/TYPO3.CMS/+/79136/5/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/Reporting/ReportDetails.php is dealing with this. Please see the patch I've created a month ago at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79136

Actions #3

Updated by Oliver Hader over 1 year ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF