Jump to content

sql injection attack


brown2005

Recommended Posts

1. always valadate all information before it enters the database.
2. make sure that when you upload files that the files are in a directory not in root.
3. use the buitin php ststements to help the databse not to get bomb shelled

example

use addslashes and as much valadation as posable.

Link to comment
https://forums.phpfreaks.com/topic/17223-sql-injection-attack/#findComment-72983
Share on other sites

I agree with effigy.

here is a link that will explain the sql insertion in more detail [url=http://www.phpfever.com/archives/12-PHP-Security-SQL-Injection-Overview.html]http://www.phpfever.com/archives/12-PHP-Security-SQL-Injection-Overview.html[/url]

and here is an example of mysql_real_escape_string in use.

[code=php:0]$whatever = mysql_real_escape_string(trim($_POST['whatever']));[/code]

Good luck,
Tom
Link to comment
https://forums.phpfreaks.com/topic/17223-sql-injection-attack/#findComment-73082
Share on other sites

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.