Jump to content

Someone inserted weird code to my php pages


peterng3

Recommended Posts

Hi all, I'm new to this forum and new to PHP.  Here's my problem.  I don't know how but someone was able to modify my index.php page and added these lines

 

<!--startpos2--!>

<font style='position: absolute;overflow: hidden;height: 0;width: 0'>

<a href="http://images.archives.utah.gov/cdm4/results.php?CISOOP1=all&CISOBOX1=buy-viagra" title="buy viagra">buy viagra</a>

<!--endpos2--!>

 

I deleted couple times and it keeps coming back.  help.

 

 

Is this code in your Index.php CODE or just on some sort of Comment or Text he posted on your site? If he managed to implant that code there, then he had FTP access to your index.php, because he took it, edited it, and reuploaded it. Otherwise, if he inputted through a FORM, then you need to protect yourself against XSS..

 

try strip_tags($text);

It's actually on index.php at the end, after all the php codes I have.

I don't think he had access to ftp. if he does he could do more harm than that right?

 

 

Or he probably uploaded to your site with your uploader or something. Either that, or he has FTP access, which yes it is harmful

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.