Project

General

Profile

Actions

Feature #17710

closed

config.baseURL is too constricting

Added by Tom about 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2007-10-22
Due date:
% Done:

0%

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

Description

In bug 0001670 it was demonstrated that config.baseURL = 1 was an insecure setting as it allows for an injection of an arbitrary <base> tag via the HTTP-HOST variable. However, this is only applicable in a scenario where a web server is configured to deliver any host addressed to the same typo installation (i.e., regardless of the client's Host: site.com in HTTP request, input will be directed to a typo3 site.

In my setup, I am running apache with the VirtualDocumentRoot setting in order to host multiple typo3 sites. As typo3 may only be visited at explicit vhosts (which are specified via the Host: header bit), this exploit will not work against sites running in this manner. Therefore, the ability to have a default template that performed a config.baseURL=1-like-function (perhaps config.baseURL=HTTP_HOST so it is more obvious) would be advantageous, and also not dangerous due to the host checking that would occur within the webserver itself. Obviously you have to way this against the possibility that someone is lazy and allows themselves to be exploited, but some sort of appropriate enabling piece of typoscript could hopefully remedy this.

(issue imported from #M6564)

Actions

Also available in: Atom PDF