T09 · Insecure Skill Coding Practices
- Location
references/api-reference.md:51- Finding
Panorama Credentials and API Keys Exposed Through URL Query Strings
- Content
View full analysis
/api/?type=keygen&user=&password= ``` Returns an API key for subsequent requests: ```text GET https:///api/?type=config&action=get&xpath=&key= ``` ### Technical Analysis The legacy Panorama authentication instructions place both the account password and the generated API key directly in URL query parameters. Although HTTPS protects the request while it is in transit, it does not prevent the complete URL from being recorded outside the encrypted network channel. Depending on how an operator follows these instructions, sensitive URLs may be retained in: - Shell command history - Browser history - Forward-proxy and reverse-proxy logs - Web server access logs - Monitoring and observability platforms - Debug traces and exception reports - Process arguments or command-line audit records - Support bundles and terminal transcripts The first request exposes a reusable username and password. The second exposes a reusable Panorama API key. Consequently, compromise of either request URL can enable unauthorized API access without requiring interception of the TLS connection. ### Attack Path 1. An operator follows the documented legacy Panorama authentication procedure and supplies a valid username and password in the key-generation URL. 2. The operator's shell, browser, proxy, monitoring agent, or Panorama access logging records the complete URL. 3. The generated API key is subsequently used in another query string and may be recorded through the same channels. 4. An attacker with access to command history, logs, telemetry, diagnostic output, or support archives extracts the password or API key. 5. The attacker submits requests to the Panorama XML API using the recovered cre ...[truncated 1398 chars]- Remediation
View remediation
