#89312NormalizedParams->getSiteUrl() contains PHP script wrapper
Description
siteUrl = http://ip10.local/fcgi/
@scriptFilename = /Users/olly/Development/vhosts/ip10.local/typo3/index.php@
@scriptName = /fcgid-bin/wrapper@
siteUrl contains PHP wrapper script in this scenario
- wrong http://ip10.local/fcgi/
- expected http://ip10.local/
_SERVER values
Array
(
[PHPRC] => /opt/local/apache2/fcgid/php72
[PATH] => /usr/bin:/bin:/usr/sbin:/sbin
[PWD] => /opt/local/etc/apache2/fcgid/php72
[ORIG_SCRIPT_NAME] => /fcgid-bin/wrapper
[ORIG_PATH_TRANSLATED] => /Users/olly/Development/vhosts/ip10.local/typo3/index.php
[ORIG_PATH_INFO] => /typo3/index.php
[ORIG_SCRIPT_FILENAME] => /opt/local/etc/apache2/fcgid/php72/wrapper
[SCRIPT_NAME] => /typo3/index.php
[REQUEST_URI] => /typo3/index.php?route=%2Fajax%2Fpage%2Ftree%2FfetchData&token=5d628d55306ca7224c9b2dbd0fa0821df2c1feba
[QUERY_STRING] => route=%2Fajax%2Fpage%2Ftree%2FfetchData&token=5d628d55306ca7224c9b2dbd0fa0821df2c1feba
[REQUEST_METHOD] => GET
[SERVER_PROTOCOL] => HTTP/1.1
[GATEWAY_INTERFACE] => CGI/1.1
[REDIRECT_QUERY_STRING] => route=%2Fajax%2Fpage%2Ftree%2FfetchData&token=5d628d55306ca7224c9b2dbd0fa0821df2c1feba
[REDIRECT_URL] => /typo3/index.php
[REMOTE_PORT] => 60065
[SCRIPT_FILENAME] => /Users/olly/Development/vhosts/ip10.local/typo3/index.php
[CONTEXT_DOCUMENT_ROOT] => /opt/local/etc/apache2/fcgid/php72/
[CONTEXT_PREFIX] => /fcgid-bin/
[REQUEST_SCHEME] => http
[DOCUMENT_ROOT] => /Users/olly/Development/vhosts/ip10.local
[REMOTE_ADDR] => 127.0.0.1
[SERVER_PORT] => 80
[SERVER_ADDR] => 127.0.0.1
[SERVER_NAME] => ip10.local
[SERVER_SOFTWARE] => Apache/2.4.41 (Unix) OpenSSL/1.0.2s mod_fcgid/2.3.9
[HTTP_HOST] => ip10.local
[REDIRECT_STATUS] => 200
[REDIRECT_HANDLER] => php-fcgid
[REDIRECT_CWD] => /
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /typo3/index.php
[REQUEST_TIME_FLOAT] => 1569838796.9877
[REQUEST_TIME] => 1569838796
)Reviews 5
- 11.5 77738[SECURITY] Prevent XSS due to wrong PATH_INFO evaluation
- main 77739[SECURITY] Prevent XSS due to wrong PATH_INFO evaluation
- 10.4 77737[SECURITY] Prevent XSS due to wrong PATH_INFO evaluation
- 9.5 63584[BUGFIX] Consider CGI wrapper for NormalizedParams->getSiteUrl()
- main 63602[BUGFIX] Consider CGI wrapper for NormalizedParams->getSiteUrl()