Skip to content

Malware alert #5315

Answered by Deltik
leespitia asked this question in Q&A Core
Aug 10, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There are currently no plans to address the malware alert, which is a false positive.

The file_get_contents()/eval() combination was introduced in 6531a68 as a workaround for loading the unstructured code of legacy themes' theme.php.

file_get_contents() followed by eval() is indeed a common malware pattern, but in the case of ./e107_handlers/menumanager_class.php, it's mostly a suboptimal way to cope with parsing legacy themes.

There isn't an easy way to import legacy theme.php files in a way compatible with the Menu Manager. One possibility could be to write a compiler using PHP Parser that preprocesses old theme.php files to isolate $LAYOUT, $HEADER, and/or $FOOTER into a data structure…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jimmi08
Comment options

Answer selected by leespitia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants