if( stristr($_POST['pass'], "'") || stristr($_POST['pass'], '"') || stristr($_POST['usr'], "'") || stristr($_POST['usr'], '"') )
A user can enter a '\' and cause invalid queries. Here is a possible fix:
if( stristr($_POST['pass'], "'") ||
stristr($_POST['pass'], '"') ||
stristr($_POST['usr'], "'") ||
stristr($_POST['usr'], '"') ||
stristr($_POST['usr'], '\\') ||
stristr($_POST['pass'], '\\') )
That should weed out an attempt to input \user\ and cause invalid queries. I'm sure people can think of more creative things to cause mysql injection exploits.
The '/' seems to be okay in mysql queries, so i don't see a need to filter it out.
Another sugestions, phpLogCon should log bad u/p attempts including time, date, and IP/dns name. Maybe something to think about for next release. Not that anyone would have this viewalbe to public anyway.
I usually login to ssh and forwad a port to an interal server to access high security stuff, but...
If there is a better place to post these mesages please let me know.


