lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20060921184148.19241.qmail@securityfocus.com>
Date: 21 Sep 2006 18:41:48 -0000
From: gmdarkfig@...il.com
To: bugtraq@...urityfocus.com
Subject: Re: Re: mysql_error() can lead to Cross Site Scripting attacks

Sorry for the little error, *Unpatched.

Just imagine, you have a limited access (sql command are filtered for example) to an sql injection, you don't know the source code of the php script. You can't do anything with the sql injection, all your attempts conduct to an error returned to client. You don't know if there is an admin panel ... you launch the XSS attack. You get the admin cookie, a new category appear, you have now acess to the admin panel.

"1. The database is almost never given by user input."
Not needed.

"2. With proper output escaping this kind of attack is thwarted." -> Yes but examples given on php.net and others php website don't say that.
See http://www.php.net/mysql_error for the manual.
See http://www.koders.com/?s=or+die+mysql_error&_%3Abtn=Search&_%3Ala=PHP&_% for examples.
Normal(and others) people aren't informed about that.

Greetings.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ