Re: Injection Attack?
| From: | Chris | Date: | Thu, 25 Feb 2010 21:27:51 +0000 |
| Subject: | Re: Injection Attack? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46913@lists.php.net to get a copy of this message | ||
Gary wrote:
I have a DB on a site that is not really up anymore (a redirect because of a merger), and it seems to have been attacked. I always use REMOTE_IP so that I have a record and able to ban IP's of the endless form spammers, however on this attack, the IP listed is my local IP (actually my old one since I changed ISP's). I was wondering how they did this and how do I protect on other DB's. Some of the other injected text inot almost every field is. 1 AND USER_NAME() = \'; DESC users; -- 1\' OR \'1\'=\'1 There is plenty more, however they submitted the form about 12 times per second. Any thoughts?I guess you didn't use mysql_real_escape_string (or mysql_escape_string) in your queries. -- Postgresql & php tutorials http://www.designmagick.com/