Project

General

Profile

Actions

Bug #103129

closed

Modified "Host" header with invalid port leads to exception when creating the ServerRequestFactory->fromGlobals

Added by Johannes Schlier 9 months ago. Updated 3 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2024-02-15
Due date:
% Done:

100%

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

Description

When a request is passed to TYPO3 that has an invalid port within the "Host" header (e. g. a non-numeric port "aaa" or too many numerals "123123123") TYPO3 pretty quickly runs into an error and returns an exception, including an HTTP 500 error.
In my opinion it would be preferable to silently ignore those invalid settings and either continue the request normally, or at least return a clean error (400 - Bad Request).

The attached screenshots are the complete stack trace of such a request.
This was reproduced with TYPO3 12.4.10 and 12.4.11.


Files


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #98264: Logging "unsupported" HTTP request methods as an exception into the log is wrongClosed2022-09-06

Actions
Related to TYPO3 Core - Task #105163: Do not log Exceptions due to invalid client headersResolved2024-09-29

Actions
Related to TYPO3 Core - Bug #105194: Lots of log entries for invalid http requestsResolved2024-10-04

Actions
Actions

Also available in: Atom PDF