Why does your code use PHP functions deemed dangerous such as eval()?
-
After our site was hacked I began a review of our codebase searching for potential vulnerabilities. I found a list of php functions that considered to be dangerous in that they create vulnerabilities.http://php.net/manual/en/function.eval.php
I found one of those functions “eval()” in /wp-content/plugins/wp-simple-firewall/src/lib/vendor/twig/lib/Twig/Environment.php
Rasmus Lerdorf, the BDFL of PHP said “If eval() is the answer, you’re almost certainly asking the wrong question.”
So finding the use of eval() in your code is greatly concerning. Can you please explain why I should not be concerned and continue to use your plugin?
The topic ‘Why does your code use PHP functions deemed dangerous such as eval()?’ is closed to new replies.