in reply to Use PPI to Find SQL Injection Attacks
A better approach might be to find all the prepare() and do() statements and run them through a safe DBI subclass that does the prepare and evaluates what it prepared.$dbh->do(qq{ /* comment */ INSERT INTO foo VALUES('$bad_stuff') }); $dbh->do(qq{ INSERT INTO foo VALUES($bad_stuff) }); $dbh->do( sprintf( "INSERT INTO foo VALUES(%s)", $bad_stuff ));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use PPI to Find SQL Injection Attacks
by Ovid (Cardinal) on Aug 14, 2007 at 18:58 UTC | |
by jZed (Prior) on Aug 14, 2007 at 19:08 UTC |