osec.one case analysis cover: PAN-OS management interface authentication bypass chained to root

In November 2024, Palo Alto Networks tracked attacks it named Operation Lunar Peek against a small number of PAN-OS firewalls whose management web interfaces were reachable from the internet or another untrusted network. CVE-2024-0012 let an unauthenticated network attacker obtain PAN-OS administrator privileges. Chained with CVE-2024-9474, an authenticated privilege-escalation issue in the web management interface, the result could be command execution as root on the firewall. Unit 42 later observed interactive commands, web shells, open-source C2 tools and cryptominers after public technical details spread.

This is deliberately not another article about CVE-2024-3400. That April 2024 issue affected the GlobalProtect feature and involved a telemetry job. Lunar Peek's pair was about the management plane: the interface operators use to configure the firewall. The fix is therefore not ‘turn off remote access’ in general; it is to ensure that the management interface is reachable only from trusted administration networks, while the VPN/data-plane service has its own tightly defined exposure.

Six-step diagram: management HTTPS exposed, authentication bypass grants admin, command injection raises privileges to root, web shell runs, firewall trust expands impact, patch and restrict management to trusted addresses

A compact timeline

DateWhat Palo Alto Networks reportedDefensive consequence
8 Nov 2024Initial PAN-SA-2024-0015 publicationIdentify whether the management plane is exposed before waiting for the next change window.
14 Nov 2024Severity raised after observed threat activityMove from vulnerability management to incident-response prioritisation.
18 Nov 2024CVE-2024-0012 assigned; advisory describes unauthenticated admin accessApply the vendor-fixed release for the affected branch.
19 Nov 2024Public technical insights/artifacts spread; Unit 42 reports a rise in scansReview management logs and exposures, not just patch status.
22 Nov 2024Unit 42 says it sees broader payloads including C2 tools and minersHunt for compromise artifacts on previously exposed systems.
23 Nov 2024Advisory clarifies GlobalProtect portals/gateways are not impacted by CVE-2024-0012Do not confuse a management-plane exposure with the VPN portal service.

Why the pair was worse than either label suggests

LinkSecurity boundary crossedWhat stops it
Public management HTTPSAnyone on the internet can reach an operator interfaceDedicated management network, VPN/jump host, source-IP allowlist; no management profile on an untrusted data-plane interface
CVE-2024-0012No credentials to PAN-OS administrator privilegesVendor patch plus elimination of untrusted network reachability
CVE-2024-9474Authenticated management context to command injection / root impactVendor patch; investigate any device exposed before patching
Web shell and payloadsFirewall becomes a persistent compute point inside a trusted boundaryIOC review, configuration comparison, support-guided forensic/recovery procedure
Trusted network positionRules, VPN settings and credentials may guide later intrusionRotate relevant secrets; review configuration/admin changes and downstream authentication logs

Palo Alto Networks gave CVE-2024-0012 a CVSS 9.3 and marked its exploit maturity as ‘attacked’. The number is useful for sorting, but its precondition matters more in a real environment: the attacker needs network access to the management web interface. A management port reachable only from a dedicated administrator subnet is a materially different target from one published to the internet. This is why exposure inventory is part of the patch decision, not a separate hygiene exercise.

One firewall at a time: remediation and evidence

1. Classify the interfaces. For each PA-Series, VM-Series, CN-Series and Panorama system, write down the management IP/port, the GlobalProtect portal/gateway address, and any data-plane interface with a management profile. Do not infer this from a public DNS name.
2. Remove untrusted management reachability. Permit HTTPS/SSH administration only from a named management subnet, VPN or jump host. Keep the change reversible: preserve a tested out-of-band route before narrowing access.
3. Patch the exact supported branch. Use the advisory's affected-version table, not a generic ‘latest’ assumption. CVE-2024-0012 and CVE-2024-9474 both need remediation.
4. Review the period before containment. Unit 42 lists a PHP web-shell hash and an observed user-agent; use the current threat brief and advisory IOC material in your own logging/EDR workflow. Also investigate unfamiliar administrators, scheduled tasks, configuration exports and rule changes.
5. Re-establish trust. Rotate management credentials and secrets exposed in configuration exports as appropriate, compare the running configuration with a known-good backup, and involve vendor support/incident response where root compromise is plausible.

What ‘never face the internet’ means in practice

It does not mean the firewall cannot provide an internet-facing service. It means the service that routes traffic (or the GlobalProtect gateway, where configured) is not also an administrator's control panel. A useful architecture has three separate statements: users may reach the VPN, the internet may reach protected applications, and only operator networks may reach management HTTPS/SSH. Any firewall policy or interface-management profile that turns those into one statement reintroduces the same class of risk.

If an external hostname must remain public, osec Scan can identify several exposed login portals and cross-reference supported products against the known-exploited catalog. It is an outside signal, not a replacement for checking PAN-OS interface and management-profile configuration.

Related cases

PAN-OS 2024: CVE-2024-3400 covers the different GlobalProtect telemetry chain. ArcaneDoor shows why an edge firewall compromise may persist below the ordinary configuration and reboot cycle. The shared rule is simple: management interfaces are high-value systems, not an extra convenience feature on the internet edge.

Check a public login page for recognized edge-device portals and known-exploited matches. It uses only the public page you provide.

Run osec Scan

Sources

• Palo Alto Networks, CVE-2024-0012 advisory (PAN-SA-2024-0015): https://security.paloaltonetworks.com/CVE-2024-0012
• Palo Alto Networks, CVE-2024-9474 advisory: https://security.paloaltonetworks.com/CVE-2024-9474
• Unit 42, Operation Lunar Peek threat brief (updated 22 Nov 2024): https://unit42.paloaltonetworks.com/cve-2024-0012-cve-2024-9474/
• NIST NVD, CVE-2024-0012: https://nvd.nist.gov/vuln/detail/CVE-2024-0012
• CISA KEV catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog