PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
BID:46587
Info
PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
| Bugtraq ID: | 46587 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Feb 26 2011 12:00AM |
| Updated: | Feb 26 2011 12:00AM |
| Credit: | AutoSec Tools |
| Vulnerable: |
Phreesoft PhreeBooks R3.0 RC4 |
| Not Vulnerable: | |
Discussion
PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
PhreeBooks is prone to a local file-include vulnerability and multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
An attacker can exploit the local file-include vulnerability using directory-traversal strings to view and execute local files within the context of the webserver process. Information harvested may aid in further attacks.
The attacker may leverage the cross-site scripting issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks.
PhreeBooks R3.0 RC4 is vulnerable; prior versions may also be affected.
PhreeBooks is prone to a local file-include vulnerability and multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
An attacker can exploit the local file-include vulnerability using directory-traversal strings to view and execute local files within the context of the webserver process. Information harvested may aid in further attacks.
The attacker may leverage the cross-site scripting issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks.
PhreeBooks R3.0 RC4 is vulnerable; prior versions may also be affected.
Exploit / POC
PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
Attackers can exploit these issues via a browser. To exploit a cross-site scripting issue, attackers must entice an unsuspecting user to follow a malicious URI.
The following example URIs are available:
Cross-site scripting:
http://www.example.com/phreedom/modules/shipping/pages/popup_shipping/js_include.php?form=';alert(0)%3C/script%3E
http://www.example.com/phreedom/modules/shipping/methods/fedex_v7/label_mgr/js_include.php?form=%22;alert(0)%3C/script%3E
Local file include:
http:///www.example.com/phreedom/index.php?page=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwindows%2fwin.ini%00
Attackers can exploit these issues via a browser. To exploit a cross-site scripting issue, attackers must entice an unsuspecting user to follow a malicious URI.
The following example URIs are available:
Cross-site scripting:
http://www.example.com/phreedom/modules/shipping/pages/popup_shipping/js_include.php?form=';alert(0)%3C/script%3E
http://www.example.com/phreedom/modules/shipping/methods/fedex_v7/label_mgr/js_include.php?form=%22;alert(0)%3C/script%3E
Local file include:
http:///www.example.com/phreedom/index.php?page=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fwindows%2fwin.ini%00
Solution / Fix
PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or 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 are aware of more recent information, please mail us at: [email protected].
References
PhreeBooks Local File Include and Cross Site Scripting Vulnerabilities
References:
References:
- PhreeBooks Homepage (PhreeSoft)
- PhreeBooks Project Page (SourceForge)