Lucene search

K
githubGitHub Advisory DatabaseGHSA-W6X2-JG8H-P6MP
HistoryFeb 13, 2024 - 7:08 p.m.

Path Traversal in TYPO3 File Abstraction Layer Storages

2024-02-1319:08:10
CWE-22
GitHub Advisory Database
github.com
8
typo3
file abstraction layer
path traversal
elts
lts
backend
lockrootpath
security
update

4.9 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

7 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

19.8%

Problem

Configurable storages using the local driver of the File Abstraction Layer (FAL) could be configured to access directories outside of the root directory of the corresponding project. The system setting in BE/lockRootPath was not evaluated by the file abstraction layer component. An administrator-level backend user account is required to exploit this vulnerability.

Solution

Update to TYPO3 versions 8.7.57 ELTS, 9.5.46 ELTS, 10.4.43 ELTS, 11.5.35 LTS, 12.4.11 LTS, 13.0.1 that fix the problem described.

ā„¹ļø Strong security defaults - Manual actions required

see Important: #102800 changelog

Assuming that a web project is located in the directory /var/www/example.org (the ā€œproject root pathā€ for Composer-based projects) and the publicly accessible directory is located at /var/www/example.org/public (the ā€œpublic root pathā€), accessing resources via the File Abstraction Layer component is limited to the mentioned directories.

To grant additional access to directories, they must be explicitly configured in the system settings of $GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'] - either using the Install Tool or according to deployment techniques. The existing setting has been extended to support multiple directories configured as an array of strings.

Example:

$GLOBALS['TYPO3_CONF_VARS']['BE']['lockRootPath'] = [
  ā€˜/var/shared/documents/ā€™,
  ā€˜/var/shared/images/ā€™,
];

ā— Storages that reference directories not explicitly granted will be marked as ā€œofflineā€ internally - no resources can be used in the websiteā€™s frontend and backend context.

Credits

Thanks to TYPO3 core & security team members Oliver Hader and Benjamin Franzke who fixed the issue.

References

Affected configurations

Vulners
Node
typo3cms_poll_system_extensionMatch13.0.0
OR
typo3cms_poll_system_extensionRangeā‰¤12.4.10
OR
typo3cms_poll_system_extensionRangeā‰¤11.5.34
OR
typo3cms_poll_system_extensionRangeā‰¤10.4.42
OR
typo3cms_poll_system_extensionRangeā‰¤9.5.45
OR
typo3cms_poll_system_extensionRangeā‰¤8.7.56

4.9 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

7 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

19.8%