Project

General

Profile

Actions

Bug #101570

closed

TYPO3 crashes on unavailable sys_csp_resolution table while csp is enabled

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

Status:
Closed
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 #1

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80331

Actions #2

Updated by Daniel Siepmann over 1 year ago

  • Subject changed from TYPO3 backend crashes on unavailable sys_csp_resolution table while csp is enabled for backend to TYPO3 crashes on unavailable sys_csp_resolution table while csp is enabled
  • Description updated (diff)
Actions #3

Updated by Markus Klein over 1 year ago

Can you please precise the issue a bit more? How does the situation occur in a normal case (when not removing tables manually)?

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80331

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80331

Actions #6

Updated by Christian Kuhn over 1 year ago

It primarily happens during core major core updates: BE bricks. The patch comment now says "usually we wouldn't catch this, but in this case it's convenient for more easy ugrades".

Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80358

Actions #8

Updated by Daniel Siepmann over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF