Project

General

Profile

Actions

Bug #22651

closed

phtml is also PHP extension and should be denied editing / uploading via fileadmin

Added by Ernesto Baschny about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-05-14
Due date:
% Done:

0%

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

Description

Most Linux distributions with PHP enabled will add handling of .phtml files through PHP module:

AddType application/x-httpd-php .php .phtml .php3

This is currently not in the list of denied files (in PHP_EXTENSIONS_DEFAULT of t3lib/config_default.php).

This means uploading a .phtml file through File manager will make it executeable.

Solution is to add this extension to the list.

Same applies to v4.2 and v4.3.
(issue imported from #M14389)


Files

14389.diff (979 Bytes) 14389.diff Administrator Admin, 2010-05-14 21:09
14389-phtml-fileext_v2_4-1.patch (989 Bytes) 14389-phtml-fileext_v2_4-1.patch Administrator Admin, 2010-05-20 15:57
14389-phtml-fileext_v2_4-2.patch (989 Bytes) 14389-phtml-fileext_v2_4-2.patch Administrator Admin, 2010-05-20 15:57
14389-phtml-fileext_v2_4-3.patch (3.18 KB) 14389-phtml-fileext_v2_4-3.patch Administrator Admin, 2010-05-20 15:57
14389-phtml-fileext_v2_4-4.patch (3.18 KB) 14389-phtml-fileext_v2_4-4.patch Administrator Admin, 2010-05-20 15:57
14389-phtml-fileext_v3_4.2_and_4.1.diff (989 Bytes) 14389-phtml-fileext_v3_4.2_and_4.1.diff Administrator Admin, 2010-06-30 14:23
14389-phtml-fileext_v3_4.3.diff (3.17 KB) 14389-phtml-fileext_v3_4.3.diff Administrator Admin, 2010-06-30 14:23
14389-phtml-fileext_v3_trunk_and_4.4.diff (3.15 KB) 14389-phtml-fileext_v3_trunk_and_4.4.diff Administrator Admin, 2010-06-30 14:23
14389-phtml-fileext_v4_4.2_and_4.1.diff (985 Bytes) 14389-phtml-fileext_v4_4.2_and_4.1.diff Administrator Admin, 2010-06-30 17:59
14389-phtml-fileext_v4_4.3.diff (3.2 KB) 14389-phtml-fileext_v4_4.3.diff Administrator Admin, 2010-06-30 17:59
14389-phtml-fileext_v5_4.3.diff (3.22 KB) 14389-phtml-fileext_v5_4.3.diff Administrator Admin, 2010-07-27 21:46
14389-phtml-fileext_v4_trunk_and_4.4.diff (3.16 KB) 14389-phtml-fileext_v4_trunk_and_4.4.diff Administrator Admin, 2010-07-27 21:46

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #21023: $TYPO3_CONF_VARS['BE']['fileDenyPattern'] causes problemsClosed2009-09-10

Actions
Related to TYPO3 Core - Bug #23630: Disallow common PHP file extensions with fileDenyPatternClosed2010-09-28

Actions
Actions

Also available in: Atom PDF