btoplak / Joomla-Anti-Malware-Scan-Script--JAMSS-

a Joomla! and WordPress Security script that automatically scans the Joomla! or Wordpress files for some patterns and "fingerprints" of malware, trojans or other injections into PHP code
146 stars 102 forks source link

Pattern found#17 - PHP: multiple encoded, most probably obfuscated code found #11

Open Yiannistaos opened 8 years ago

Yiannistaos commented 8 years ago

My Joomla! version is the 3.5.0-rc.

From JED Checker (component), I've got this.

Rule Jamss - JAMSS - Joomla! Anti-Malware Scan Script

001

example.php in line: 63 Pattern found#17 - PHP: multiple encoded, most probably obfuscated code found

My code in line 63 is: $test = preg_replace("/(plg_|com_|mod_)/", "$replacement_string", $string); echo $test;

Why is the code obfuscated? Can you give me another code example to pass the test?

Thanks.

bdthemes commented 8 years ago

me too. str_replace('licon:', '', $atts['icon']); show error here in my plugin so how we use str_replace()?