Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-9999-Serverless-Event-Injection-to-Code-Overwrite — CVE-2026-9999에 대한 개념 증명(PoC) 익스플로잇으로, 서버리스 객체 스토리지 이벤트의 경로 탐색(path traversal)을 시연하여 함수 소스 코드를 덮어쓰고 RCE(원격 코드 실행)를 달성합니다. | Kitploit
도구/GitHubGitHub/george0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite
Cloud Infrastructure SecurityVulnerability AnalysisExploitationServerless SecurityCloud SecurityLearning & Education
GitHubgeorge0papasotiriou/cve-2026-9999-serverless-event-injection-to-code-overwrite

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

CVE-2026-9999에 대한 개념 증명(PoC) 익스플로잇으로, 서버리스 객체 스토리지 이벤트의 경로 탐색(path traversal)을 시연하여 함수 소스 코드를 덮어쓰고 RCE(원격 코드 실행)를 달성합니다.

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
저장소 보기
101개월 전아직 검토되지 않음

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
    
도구 다운로드