I noticed today that some very popular extension providers such as nonumber.nl (Peter provides some splendid and very useful plugins!) and Chronoforms for instance use a rather confusing technique to obfuscate code. On our hosting platform we use Configserver.com suite to enhance protection and they are awesome. However we get results from exploit scans that might (!) seem worrying. I am absolutely sure that you are all on the tip of your toes when you see in code something starting with " [eval\s*\(?( etc
Example nonumber:
(98) besdev03, Scanning /home/besdev03:
# Regular expression match = [eval\s*\(?(\"\?\>\"\.)?\s*base64_decode]:
'/home/besdev03/public_html/tmp/install_4cd19d0bb1856/BetterPreview-v1.6.1/files/elements/plugins/system/nonumberelements/elements/license.php'
# Regular expression match = [eval\s*\(?(\"\?\>\"\.)?\s*base64_decode]:
'/home/besdev03/public_html/plugins/system/nonumberelements/elements/license.php'
Example Chronoforms:
(97) besdev05, Scanning /home/besdev05:
# Regular expression match = [eval\s*\(?(\"\?\>\"\.)?\s*base64_decode]:
'/home/besdev05/public_html/components/com_chronocontact/chronocontact.html.php'
# Regular expression match = [eval\s*\(?(\"\?\>\"\.)?\s*base64_decode]:
'/home/besdev05/public_html/components/com_chronocontact/plugins/cf_paypal_api.php'
# Regular expression match = [eval\s*\(?(\"\?\>\"\.)?\s*base64_decode]:
'/home/besdev05/public_html/components/com_chronocontact/plugins/cf_Authorize_dotnet.php'
We all know that the Gumblar uses an almost identical regular expression regular expression ("eval\s*\(\s*gzinflate\s*\(\s*base64_decode") . This expression is marked by Configserver as a possible threat to any server "suspicious".
I quote the specialists from Configserver.com: "Genuine applications really should not be using such techniques to obfuscate code and should either encrypt it or leave it in plain text. It's up to you whether you want to accept the risk of allowing such PHP scripts to be uploaded, with the knowledge that often that regex is all that will identify an exploit." end of quote (source:
http://forum.configserver.com/viewtopic.php?f=26&t=3155)
This is by no means meant to be negative towards these 2 excellent extension providers. We use them ourselves daily in our applications but my server managers are getting nervous when they receive output scans with regex similar to Gumblar on first sight.
I know all about false positives but as a general question should extension developers obfuscated code with this techniques or should it be plain text (encrypt is not acceptable in GPL) as advised by Configserver?
You need to be a member of All Together, As A Whole to add comments!
Join All Together, As A Whole