某cms奇怪的文件上传绕过漏洞

0x01
给老外写的时候用的英文(谷歌翻译的)
I installed the latest version of ***(这个东西比较敏感) CMS and found upload bypass in the system
In the latest version(3.0.4), the system forbids HTML suffix name upload, but now it can bypass it.

某cms奇怪的文件上传绕过漏洞_第1张图片

某cms奇怪的文件上传绕过漏洞_第2张图片

0x02
Vulnerability proof

You can bypass the file upload limit by putting double quotes before the suffix of HTML

1 Visit website http://[address]:[port]/[app_path]/admin/index.php?id=filesmanager with login

2 Save html codes with '.png’extensions. and upload it like below.

 
     
	    
        hacker 
     
     
     
     

图片.png

Click the uploaded file and Grab the packet and change the suffix name to XXX"".html at filename,This circumvents this limitation.

某cms奇怪的文件上传绕过漏洞_第3张图片

某cms奇怪的文件上传绕过漏洞_第4张图片

4 move to http://[address]:[port]/[app_path]/public/uploads/[uploaded file]

You can see that you executed HTML and JS code,If you access this file, you can get the administrator’s cookie and execute any JS code

某cms奇怪的文件上传绕过漏洞_第5张图片

你可能感兴趣的:(web漏洞复现)