ShowDoc 2.8.14 至 3.9.6 之前的版本中,其 Mock 功能存在代码注入漏洞。该漏洞允许已认证用户通过 mockjs 模板执行 Shell 命令。攻击者可通过 MockController::add 方法存储包含转义括号的模板,这些模板会被 mockjs 使用 eval() 函数评估;随后,攻击者可通过 MockController::infoByKey 方法触发该模板,从而以 root 权限(在官方 Docker 镜像中)执行命令。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC