Project

General

Profile

Actions

Feature #86844

closed

Allow 404-handling for non-defined page-types (typeNum)

Added by Stefan Neufeind over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2018-11-03
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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).

Actions #1

Updated by Holger Drosdek over 5 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/*

Actions #2

Updated by Gerrit Hübbers over 4 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

Actions #3

Updated by Gerrit Code Review over 4 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

Actions #4

Updated by Gerrit Code Review over 4 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

Actions #5

Updated by Gerrit Code Review over 4 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

Actions #6

Updated by Benni Mack over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF