Project

General

Profile

Actions

Bug #101570

closed

TYPO3 crashes on unavailable sys_csp_resolution table while csp is enabled

Added by Daniel Siepmann 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Category:
Security
Target version:
-
Start date:
2023-08-03
Due date:
% Done:

100%

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

Description

Reproduce:

  1. Enable CSP feature for backend
  2. Ensure sys_csp_resolution table is missing, e.g. execute drop table sys_csp_resolution
  3. Log into TYPO3 backend
  1. Enable CSP feature for frontend
  2. Ensure sys_csp_resolution table is missing, e.g. execute drop table sys_csp_resolution
  3. Open TYPO3 frontend

Error:

(1/3) #1146 Doctrine\DBAL\Exception\TableNotFoundException

An exception occurred while executing a query: Table 'own_danielsiepmann.sys_csp_resolution' doesn't exist

Triggered by vendor/typo3/cms-core/Classes/Security/ContentSecurityPolicy/Reporting/ResolutionRepository.php line 58 findByScope()

Actions

Also available in: Atom PDF