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
sonicwall-audit-toolkit — SonicWall security audit toolkit with vulnerable CTF lab (CVE-2021-20038, CVE-2024-53704) | Kitploit
Tools/GitHubGitHub/anir0y/sonicwall-audit-toolkit
Vulnerability ScannersConfiguration AuditingWeb SecurityCTFPenetration TestingAuthenticationLearning & EducationLabs & Practice
GitHubanir0y/sonicwall-audit-toolkit

sonicwall-audit-toolkit

SonicWall security audit toolkit with vulnerable CTF lab (CVE-2021-20038, CVE-2024-53704)

View Repository
5 months 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

SonicWall Security Audit Toolkit

Automated security assessment framework for SonicWall appliances. For authorized penetration testing engagements only.

Quick Start

root@kitploit:~
# Install dependencies
pip install -r requirements.txt

# Run all modules against a target
python3 sonicwall_audit.py --target 192.168.1.1 --port 8443

# Run specific modules
python3 sonicwall_audit.py -t 192.168.1.1 -p 8443 -m ssl,cve

# Verbose output
python3 sonicwall_audit.py -t 192.168.1.1 -p 8443 -v

# JSON-only output
python3 sonicwall_audit.py -t 192.168.1.1 -p 8443 --format json

Modules

ModuleDescriptionRisk Level
sslSSL/TLS config: certs, protocols, ciphers, HSTSPassive
cveKnown CVE detection via fingerprintingPassive
authDefault creds, session security, rate limitingActive (low)
webHeaders, info disclosure, API exposure, methodsPassive/Active

What Each Module Checks

SSL (ssl)

  • Certificate validity, expiry, key strength, signature algorithm
  • Protocol versions: SSLv3, TLS 1.0/1.1/1.2/1.3
  • Cipher suite strength
  • HSTS header

CVE Scanner (cve)

  • Appliance fingerprinting (product type, firmware version)
  • Non-destructive checks for: CVE-2021-20016, CVE-2021-20038, CVE-2023-0656, CVE-2023-44221, CVE-2024-40766, CVE-2024-53704, CVE-2024-53705, CVE-2025-23006
  • Does NOT attempt exploitation

Authentication (auth)

  • Factory default credential testing (admin/password, admin/admin)
  • Login form CSRF protection
  • Session cookie flags (Secure, HttpOnly, SameSite)
  • Rate limiting detection
  • Security headers on login page

Web Interface (web)

  • HTTP method testing (TRACE, PUT, DELETE)
  • Security headers audit (HSTS, CSP, X-Frame-Options, etc.)
  • Version/technology disclosure
  • Error page information leakage
  • Directory listing
  • Exposed API endpoints
  • HTTP-to-HTTPS redirect

Output

Reports are saved to reports/ (configurable with --output-dir):

  • sonicwall_audit_YYYYMMDD_HHMMSS.json — Machine-readable
  • sonicwall_audit_YYYYMMDD_HHMMSS.txt — Human-readable with severity ratings

Exit Codes

CodeMeaning
0No critical or high findings
1High severity findings
2Critical severity findings

Vulnerable Lab (CTF)

A Docker-based practice lab with real exploitable vulnerabilities simulating two critical SonicWall CVEs. Both containers replicate real SonicWall response patterns so the audit toolkit can be tested against them.

root@kitploit:~
cd lab && docker-compose up --build -d
ContainerPortCVEChallenge
sonicwall-sma1008443CVE-2021-20038Stack buffer overflow in CGI binary → RCE
sonicwall-sslvpn

Exploit skeletons are in lab/exploits/, working solutions in lab/solutions/. Full walkthrough: lab/WALKTHROUGH.md

Project Structure

root@kitploit:~
sonicwall/
├── sonicwall_audit.py          # Main entry point / orchestrator
├── validate_cves.py            # Standalone CVE validator
├── requirements.txt
├── configs/
│   └── default.json            # Default configuration
├── modules/
│   ├── base.py                 # Shared base class + HTTP utilities
│   ├── ssl_audit.py            # SSL/TLS auditor
│   ├── cve_scanner.py          # Known CVE scanner
│   ├── auth_tester.py          # Authentication tester
│   ├── web_interface.py        # Web interface auditor
│   ├── report_generator.py     # JSON + text report output
│   ├── cve_2021_20038_validator.py  # CVE-2021-20038 deep validator
│   └── cve_2024_53704_validator.py  # CVE-2024-53704 deep validator
├── lab/                        # Vulnerable practice lab (Docker)
│   ├── docker-compose.yml
│   ├── WALKTHROUGH.md
│   ├── cve-2021-20038/         # Buffer overflow container
│   ├── cve-2024-53704/         # Auth bypass container
│   ├── exploits/               # Skeleton exploits (fill in the blanks)
│   └── solutions/              # Working exploits (spoilers)
└── reports/                    # Generated reports

CI/CD Integration

root@kitploit:~
# Returns non-zero exit code on critical/high findings
python3 sonicwall_audit.py -t $TARGET -p 8443 --format json -m ssl,cve,web
echo $?  # 0=pass, 1=high, 2=critical

Adding Custom CVE Checks

Edit modules/cve_scanner.py and add entries to SONICWALL_CVES:

root@kitploit:~
{
    "cve": "CVE-YYYY-NNNNN",
    "cvss": 9.8,
    "severity": "CRITICAL",
    "title": "Description",
    "description": "Full description",
    "check": "_check_cve_yyyy_nnnnn",  # method name
    "remediation": "Update to version X.",
    "affected_products": ["SonicOS"],
}

Then implement the corresponding _check_cve_yyyy_nnnnn(self, cve_info) method.

Download Tool
4433
CVE-2024-53704
SSLVPN auth bypass via cookie forgery