Forum Moderators: phranque

Message Too Old, No Replies

HELP! Some of my pages hacked!

         

kenfused

5:36 pm on Sep 27, 2006 (gmt 0)

10+ Year Member



Hello,

On some pages on my site, I can't post the URL I guess I'm not allowed to...
but they are PHP and have a few scripts running on them.

WHen I run them I get immediately redirected to

Some "Turkish Cyber Army" page and it says my page was hacked.
This does not happen for all my pages... just a few.
HELP!

Tourz

5:45 pm on Sep 27, 2006 (gmt 0)

10+ Year Member



try changing your FTP password to something less crackable.

kenfused

5:45 pm on Sep 27, 2006 (gmt 0)

10+ Year Member



Fixed it...
someone posted a SCRIPT into my mySQL Db..

HOw can I disallow particular charcters from being posted into a submit form that gets sent into a mySQL DB?

rocknbil

6:47 pm on Sep 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ken - this a deep and important subject that requires immediate attention. First, Google for terms like "php security" "cleanse input," but by your last post the most important topic will be "sql injection" or sql inject."

A dig through the php forums here will be helpful too.

Second, and this one's **real** important - don't think for a minute they are actually submitting your form. Examine this command:

curl -d [www,example.com...] 'customer=me&cc=4007000000027'

If this simple example is executed from the command line on a Linux box, basically curl will go to that URL as if it has submitted a form with the fields "customer" and "cc" and return the result.

The point here is a form processor does not have to be visited by your form and can be attacked from anywhere. There are hack programs that do this in an automated process. So don't waste your time on Javascript in your form to correct this, turn your attention to your scripts.

Lastly,

someone posted a SCRIPT into my mySQL Db..

Did this happen as a result of YOUR scripts or someone else's domain on your hosting server? If it came from some other domain on your host, find a new host, immediately, and do not think twice.