[SECURITY] Disallow invalid encoding in GeneralUtility::validPathStr
Directory names, which have an invalid UTF encoding, cause the preg_match() to return false. To avoid that the complete statement in GeneralUtility::validPathStr() returns true in this case, a strict comparison against 0 is added, so that we ensure that strings with invalid encodings are rejected by this API method. As a consequence UTF-16 encoded path names are rejected as well, if the system / file system does not support them. Resolves: #73453 Releases: master, 8.4, 7.6, 6.2 Security-Commit: c54aa56d18815aa1867ec54358ad419ea03ec205 Security-Bulletins: TYPO3-CORE-SA-2016-023, 024 Change-Id: Iedd6628050d8cdf2efe429bcd7b577f5a6d11805 Reviewed-on: https://review.typo3.org/50744 Reviewed-by:Oliver Hader <oliver.hader@typo3.org> Tested-by:
Oliver Hader <oliver.hader@typo3.org>
... | ... | @@ -57,7 +57,8 @@ |
"se/selenium-server-standalone": "~2.53", | ||
"7elix/styleguide": "~8.0.0", | ||
"friendsofphp/php-cs-fixer": "^1.12", | ||
"fiunchinho/phpunit-randomizer": "~2.0.3" | ||
"fiunchinho/phpunit-randomizer": "~2.0.3", | ||
"symfony/polyfill-mbstring": "~1.0" | ||
}, | ||
"suggest": { | ||
"ext-gd": "GDlib/Freetype is required for building images with text (GIFBUILDER) and can also be used to scale images", | ||
... | ... |
Please register or sign in to comment