Issue Task Closed

#66740Issue #66263 patch do not work with suhosin.executor.disable_eval

Matthias Toscanelli 05/02/15, 15:02 updated 10/23/17, 21:48

Description

The patch for issue 66263 introduces use of PHP function “eval”.

TYPO3 can run with “suhosin.executor.disable_eval” that prevent most of hackers obfuscated intrusion.

Before this patch, “eval” was only used in core:
  • for testing purpose
  • to migrate localconf to LocalConfiguration (TYPO3\CMS\Install\Controller\StepController::migrateLocalconfToLocalConfigurationIfNeeded)
  • for ADOBD_text (ADODB_text::_query)

In production testing is never used and localconf has already be migrated.
In case of using ADODB_text, “eval” can not be disabled.

In this patch, “eval” is used to dynamically rename the “ext_update” class name to prevent two “ext_update” when name-spaces are not used.
We could simple change this by generating a temporary PHP file in “typo3temp” with the PHP code, include it and then remove it.

Reviews 2