SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   ackerTodo Vendors:   ackertodo.sourceforge.net
ackerTodo Missing Input Validation in 'gadget/login.php' Lets Remote Users Inject SQL Commands
SecurityTracker Alert ID:  1017008
SecurityTracker URL:  http://securitytracker.com/id/1017008
CVE Reference:   CVE-2006-5228   (Links to External Site)
Updated:  Jun 2 2008
Original Entry Date:  Oct 6 2006
Impact:   Disclosure of system information, Disclosure of user information, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  
Version(s): 4.2
Description:   A vulnerability was reported in ackerTodo. A remote user can inject SQL commands.

The 'gadget/login.php' script does not properly validate user-supplied input in the 'up_pass' parameter. A remote user can supply a specially crafted parameter value to execute SQL commands on the underlying database.

A demonstration exploit URL is provided:

http://[target]/gadget/login.php?up_login=admin&up_pass=wrongpass')%20or%20(%20'1'%20=%20'1'%20AND%20login%20=%20'admin&up_num_tasks=100%20UNION%20select%20*%20FROM%20tasks

Francesco Laurita reported this vulnerability.

Impact:   A remote user can execute SQL commands on the underlying database.
Solution:   The vendor has issued a fix, available via CVS.
Vendor URL:  ackertodo.sourceforge.net/ (Links to External Site)
Cause:   Input validation error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Subject:  ackerTodo 4.2 SQL Injection Vulnerability

ackerTodo 4.2 SQL Injection
vendor: http://ackertodo.sourceforge.net/site2/index.html
File: gadget/login.php

Exploiting this issue could allow an attacker to access sensible data.

Vuln code:
$user_login = trim($_REQUEST['up_login']);
$user_pass = trim($_REQUEST['up_pass']);
$num_tasks = trim($_REQUEST['up_num_tasks']);

and after...
$result = db_query("SELECT * FROM ".$table_prefix."users "
                        ."WHERE login='$user_login' "
                        ."AND password=md5('$user_pass')");

and after...

 $sql = $sql . ' LIMIT ' . $num_tasks;

Exploit:
http://site.com/gadget/login.php?up_login=admin&up_pass=wrongpass')%20or%20(%20'1'%20=%20'1'%20AND%20login%20=%20'admin&up_num_tasks=100%20UNION%20select%20*%20FROM%20tasks

Vendor has been informed and a patch has been committed into cvs

Regards

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC