Jump to content

Injection Boosters


rarebit

Recommended Posts

Since everyone seems to be asking about injection attacks I thought i'd ask about this one I found earlier today. It's in PDF format from www.milw0rm.com entitled Uncommon SQL Injection.

 

is there a standard way to combat this (i'm about to reread so...), e.g. not allow sql commands (prolly surrounded by spaces, but allow within other words)?

Link to comment
https://forums.phpfreaks.com/topic/104636-injection-boosters/
Share on other sites

mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a.

 

There technically not harmful characters, but use sql functions in a special way. See the latter part of that document.

 

Admittedly there are only a few situations and in my case most can be caught with intval, but I wondering whether to write up a regex/strstr function, or whether one might already exist?

Link to comment
https://forums.phpfreaks.com/topic/104636-injection-boosters/#findComment-535539
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.