[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:
--------------------
KAPDA myNewsletter 1.1.2 Login bypass PoC
change action in source and then submit
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