Project

General

Profile

Actions

Bug #103673

closed

CSP: Admin Panel submodule script tag does not get nonce attached

Added by Chris Müller 15 days ago. Updated 12 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
AdminPanel
Start date:
2024-04-19
Due date:
% Done:

100%

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

Description

With EXT:schema, I am providing a custom admin panel module/submodule with JavaScript attached. The script tag does not get a nonce attribute for that submodule which results in a CSP violation when not allowing 'self', only nonce for scripts.

The reason for this: in ResourceUtility class the $attributes array (which holds the "useNonce" configuration) is not passed to the getAdditionalResourcesForModules() call.

Actions #1

Updated by Chris Müller 15 days ago

  • Subject changed from CSP to CSP: Admin Panel submodule script tag does not get nonce attached
Actions #2

Updated by Chris Müller 15 days ago

  • Description updated (diff)
Actions #3

Updated by Chris Müller 15 days ago

  • Description updated (diff)
Actions #4

Updated by Gerrit Code Review 15 days 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/+/83927

Actions #5

Updated by Gerrit Code Review 12 days 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/+/83898

Actions #6

Updated by Chris Müller 12 days ago

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

Also available in: Atom PDF