WXforum.net
May 22, 2013, 01:13:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178535  •  Topics: 18117
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: buoy-data.php as MALWARE ??? [resolved]  (Read 467 times)
0 Members and 1 Guest are viewing this topic.
w2swr
Member
*
Offline Offline

Posts: 9



« on: July 09, 2012, 10:17:46 AM »

I was contacted by my web host. They asked me to remove both copies I run of buoy-data.php until this can be resolved. Below is a copy of their report. Why is this being detected as malware and can it be corrected?

Quote
malware detect scan report for alexandria75.etcserver.com:
SCAN ID: 070912-0822.11976
TIME: Jul 9 08:53:41 -0500
PATH: /home/%%%%%%/public_html
TOTAL FILES: 24357
TOTAL HITS: 2
TOTAL CLEANED: 0

NOTE: quarantine is disabled! set quar_hits=1 in conf.maldet or to quarantine results run: maldet -q 070912-0822.11976
FILE HIT LIST:
{HEX}php.include.remote.439 : /home/%%%%%%/public_html/$$$$$$/weather/buoy-data.php
{HEX}php.include.remote.439 : /home/%%%%%%/public_html/##########/wx/buoy-data.php
===============================================
Linux Malware Detect v1.4.1 < proj@rfxn.com >

I attached the file as a txt for all to examine.

Thanks Mike
« Last Edit: July 09, 2012, 02:02:56 PM by saratogaWX » Logged

saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3730


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #1 on: July 09, 2012, 12:24:34 PM »

Wow, startling headline, but not totally accurate.  The buoy-data.php script you attached (and the distributed one) are both malware-free.

It appears that what the Linux Malware Detect v1.4.1 is griping about is the use of include("buoy-data.php") and not even the HTTP version of the include (which would be viewed as suspicious if it is on a different domain).

You didn't include the contents of the page that is loading buoy-data.php, so it's hard to tell just why the Linux Malware Detect software is griping about a perfectly ordinary PHP method of invoking a script.  If you're using something like:

In the <head></head> part of the including page, put:

<?php
 $doPrintBUOY = false;
 include("buoy-data.php");
 print $BUOY_CSS;
 ?>

in the <body></body> part of the including page, put:

<?php print $BUOY_MAP; ?>
<?php print $BUOY_TABLE ?>

If you need to center the map and table on the page, don't use <center></center> or <div align="center></div> as it will cause the map display to offset from the background map. Instead use in the <body></body> part:

 <table width="99%">
 <tr><td align="center">
   <table width="100%">
   <tr>
     <td align="center">
      <?php print $BUOY_MAP; ?>
     </td>
   </tr>
   <tr>
     <td align="left">
     <?php print $BUOY_TABLE ?>
     </td>
   </tr>
   </table>
   </td></tr>
 </table>

    to load your buoy-data.php script in your page, there should be no false-positive indications from the Linux Malware Detect software.

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
w2swr
Member
*
Offline Offline

Posts: 9



« Reply #2 on: July 09, 2012, 12:43:54 PM »

I dont think I ever edited the wxbuoy.php file
Quote
page that is loading buoy-data.php
. I am attaching it as a txt file as well.
Logged

saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3730


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #3 on: July 09, 2012, 01:01:28 PM »

No malware there, nor is there improper use ..

I'd suggest contacting the hoster to ask about the false-positive report and get it resolved with them.

What you're doing with the script and the including page are both proper use and shouldn't be flagged by their detector.

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
w2swr
Member
*
Offline Offline

Posts: 9



« Reply #4 on: July 09, 2012, 01:39:31 PM »

Ken,

I removed the following lines;

// in the <head></head> portion of your page insert
// <?php include("http://your.website/buoy-data.php?inc=CSS");
// and in the <body> portion where you'd like the map/table to appear
// <?php include("http://your.website/buoy-data.php?inc=Y");
// Note: you must include the CSS in your <head> part otherwise the
// mesomap will not be formatted correctly.

I had my host re-scan for malware and the scan came back clean.

Thanks for your help,

Mike
Logged

saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3730


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #5 on: July 09, 2012, 02:02:27 PM »

Ah... that would do it.. Glad it's all sorted out now Smile

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.096 seconds with 18 queries.