PHP preg_replace used on user input

  • <div class="bb-coolbox"><span class="bb-dark">Manual confirmation is required for this alert.</span></div><br/> This script is using the PHP function preg_replace() on user input. This is not recommended as it can lead to various vulnerabilities. Consult "Web references" for more information about this problem. <br/><br/> The <strong><span class="bb-dark">e</span></strong> modifier makes preg_replace() treat the replacement parameter as PHP code after the appropriate references substitution is done. If the regex pattern and the replacement strings are controlled by the user this can conduct to PHP code execution.
  • It is not recommended to use preg_replace() on user input.