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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2026-9999-Serverless-Event-Injection-to-Code-Overwrite — CVE-2026-9999 の概念実証エクスプロイト。サーバーレスオブジェクトストレージイベントにおけるパストラバーサルを実証し、関数ソースコードを上書きして RCE を達成します。 | Kitploit
ツール/GitHubGitHub/george0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite
クラウドインフラストラクチャセキュリティ脆弱性分析エクスプロイトサーバーレスセキュリティクラウドセキュリティ学習と教育
GitHubgeorge0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite

CVE-2026-9999-Serverless-Event-Injection-to-Code-Overwrite

CVE-2026-9999 の概念実証エクスプロイト。サーバーレスオブジェクトストレージイベントにおけるパストラバーサルを実証し、関数ソースコードを上書きして RCE を達成します。

人気

すべて見る →

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

すべてのツールを探索

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

すべてのツールを見る →
共有
リポジトリを見る
18日前未レビュー

3. CVE-2026-9999 – サーバーレス関数イベントインジェクション(パストラバーサル → コード上書き)

概要

オブジェクトストレージイベントを処理するサーバーレスプラットフォームは、object.key フィールドをサニタイズしないため、攻撃者がパストラバーサルを介して関数のソースコードを上書きできる可能性があります。

重大度: 緊急(次回の呼び出し時にRCE)

エクスプロイトとシミュレーション(Python)

root@kitploit:~
#!/usr/bin/env python3
"""
vulnerable_serverless.py - Simulated AWS Lambda-like runtime with event injection.
"""
import json, os, shutil, subprocess
from http.server import HTTPServer, BaseHTTPRequestHandler

FUNCTION_DIR = "/tmp/function"
os.makedirs(FUNCTION_DIR, exist_ok=True)
# initial function code
with open(os.path.join(FUNCTION_DIR, "handler.py"), "w") as f:
    f.write("""
def handler(event):
    return "Hello, " + event.get('name', 'world')
""")

class Handler(BaseHTTPRequestHandler):
    def do_POST(self):
        content_length = int(self.headers['Content-Length'])
        body = self.rfile.read(content_length)
        event = json.loads(body)
        # Vulnerable: use event['key'] to decide which file to load?
        # Simulate: the function source is overwritten by an "update" event from storage.
        if event.get('source') == 'storage':
            # Path traversal in object key
            object_key = event['object']['key']  # attacker controlled
            # Overwrite handler.py with the object content (simulated)
            dst = os.path.join(FUNCTION_DIR, "handler.py")
            # directory traversal to write outside? But we want to overwrite handler.py.
            # Attack: object.key = "../../../tmp/function/handler.py"
            # Normalize to ensure it's within FUNCTION_DIR? No validation!
            # The "get object" would fetch the file; here we just write injected code.
            injected_code = event.get('code', '# no code')
            # Resolve the full path – this is the vulnerability:
            full_path = os.path.normpath(os.path.join(FUNCTION_DIR, object_key))
            # Only check if it is under FUNCTION_DIR? Not present.
            with open(full_path, 'w') as f:
                f.write(injected_code)
            self.send_response(200)
            self.end_headers()
            self.wfile.write(b"Update applied")
        else:
            # Execute current handler (for demo)
            import handler
            result = handler.handler(event)
            self.send_response(200)
            self.end_headers()
            self.wfile.write(result.encode())

server = HTTPServer(('0.0.0.0', 8000), Handler)
server.serve_forever()

CVE-2026-9999 – サーバーレスイベントインジェクションによるコード上書き

Severity: Critical

📖 概要

サーバーレスプラットフォームのイベント処理におけるパストラバーサル脆弱性により、攻撃者が関数のソースコードを上書きし、その後の呼び出しでリモートコード実行を引き起こす可能性があります。

⚙️ 脆弱性の詳細

  • 種類: パストラバーサル / 安全でないファイル書き込み
  • 影響: リモートコード実行(RCE)
  • 根本原因: プラットフォームがストレージイベントの object.key フィールドをサニタイズせずに信頼しているため、../ シーケンスにより関数サンドボックス内の任意のパスへの書き込みが可能になります。

🧪 エクスプロイトの実証

  1. 脆弱なランタイムを起動します:
    root@kitploit:~
    python vulnerable_serverless.py
    
  2. エクスプロイトを実行します:
    root@kitploit:~
    python exploit_event_injection.py
    
ツールをダウンロード