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.

 

 

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.