ShowDoc 3.9.6未満の脆弱性、認証済みユーザーに任意のコマンドを実行される
Summary
ShowDocのMock機能に脆弱性があり、ログインできる利用者がmockjsのテンプレートを通じてシェルコマンドを実行できます。影響を受けるのは2.8.14以降3.9.6未満で、3.9.6で修正されています。公式Dockerイメージではrootとして実行されるため、早めに3.9.6へ更新することをおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
ShowDocのMock機能に脆弱性があり、ログインできる利用者がmockjsのテンプレートを通じてシェルコマンドを実行できます。影響を受けるのは2.8.14以降3.9.6未満で、3.9.6で修正されています。公式Dockerイメージではrootとして実行されるため、早めに3.9.6へ更新することをおすすめします。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| ShowDoc | ShowDoc |
≥ 2.8.14, < 3.9.6 |
3.9.6 |
Original description The description as published by the source.
ShowDoc 2.8.14 before 3.9.6 contains a code injection vulnerability in its Mock feature that allows authenticated users to execute shell commands through mockjs templates. Attackers can store a template via MockController::add with escaped parentheses that mockjs evaluates with eval(), then trigger it through MockController::infoByKey to run commands, as root in the official Docker image.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web github.com
- web gist.github.com
- web github.com
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com