Vulnerability Development mailing list archives

OWL Intranet Engine


From: tony () libpcap net
Date: Sun, 18 May 2003 01:59:13 -0400

I was checking out the advisory, and noticed this clip:

        // Remove this else in a future version
        else {
           if ($username == "admin") {
                $sql->query("select * from $default->owl_users_table
where username = '$username' and password = '$password'");

I wonder what would happen if username was admin, and password was:
' OR 1=1 AND username = 'admin

Seems like a highly likely candidate for SQL injection.. anyone care to
give a little insight? Perhaps even test it out using httpush or
something?

-- 
+ Microsoft doesn't believe in free() code.


Current thread: