Feature #86844
closedAllow 404-handling for non-defined page-types (typeNum)
100%
Description
You might previously have used pages with a typeNum different than 0, like a print-type or some type used for fetching JSON-data. Once that page-type is no longer defined calling those URLs leads to errors. But it doesn't trigger 404-handling (like showing a page-not-found information).
Updated by Holger Drosdek about 6 years ago
Maybe corresponding to the allowed languages: config.linkVars = L(0-1).
I noticed at some sites multiple log records like this one testing SQL-Injection:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294587217: The page is not configured! [type=11111111111111][]. This means that there is no TypoScript object of type PAGE with typeNum=11111111111111 configured. | TYPO3\CMS\Core\Error\Http\ServiceUnavailableException thrown in file /var/www/virtual/domain.de/typo3_src-8.7.19/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php in line 2491. Requested URL: https://www.domain.de/themen/thema1/?ps=en%252525252527A%25252525253D0%2527A%253D0&type=11111111111111" UNION SELECT CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR,CHAR%20--%20/*%20order%20by%20%22as%20/*
Updated by Gerrit Hübbers about 5 years ago
Also good is an option to fallback to the default typeNum=0 for any non-defined typeNum, as per https://stackoverflow.com/q/58920506/923560
Updated by Gerrit Code Review about 5 years ago
- Status changed from New to Under Review
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62244
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62244
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62396
Updated by Benni Mack about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cfb5788f1c1ae6788aa0d03a82061c932549aa0d.