{"id":1954,"date":"2025-02-13T10:03:36","date_gmt":"2025-02-13T10:03:36","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/02\/13\/path-confusion-in-nginx-apache-leads-to-critical-auth-bypass-in-pan-os\/"},"modified":"2025-02-13T10:03:36","modified_gmt":"2025-02-13T10:03:36","slug":"path-confusion-in-nginx-apache-leads-to-critical-auth-bypass-in-pan-os","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/02\/13\/path-confusion-in-nginx-apache-leads-to-critical-auth-bypass-in-pan-os\/","title":{"rendered":"Path Confusion in Nginx\/Apache Leads to Critical Auth Bypass in PAN-OS"},"content":{"rendered":"<p>    Path Confusion in Nginx\/Apache Leads to Critical Auth Bypass in PAN-OS<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>Palo Alto Networks has recently disclosed a critical vulnerability in its PAN-OS network security operating system, tracked as <a href=\"https:\/\/cybersecuritynews.com\/pan-os-vulnerability-web-interface-authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\">CVE-2025-0108<\/a>, which allows attackers to bypass authentication on the management web interface.\u00a0<\/p>\n<p>This vulnerability, with a CVSSv3.1 score of 7.8, exposes affected systems to significant threats by enabling unauthenticated attackers to invoke certain PHP scripts without proper authorization.\u00a0<\/p>\n<p>The flaw highlights architectural weaknesses in the interaction between Nginx and Apache, two key components of the management interface.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Path Confusion in Nginx\/Apache<\/strong><\/h2>\n<p>The root cause of CVE-2025-0108 lies in path confusion and header smuggling between Nginx and <a href=\"https:\/\/cybersecuritynews.com\/apache-cassandra-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Apache<\/a>.\u00a0<\/p>\n<p>When a request is sent to the PAN-OS management interface, it is first processed by Nginx, which uses specific headers to enforce authentication.\u00a0<\/p>\n<p>One critical header is X-pan-AuthCheck: on, signaling that authentication is required. However, conditional rules in the Nginx configuration may disable this check for certain paths, such as those matching \/unauth\/:<\/p>\n<pre class=\"wp-block-preformatted\">if ($uri ~ ^\/unauth\/.+$) {\nset $panAuthCheck 'off';\n}<\/pre>\n<p>Nginx proxies the request to Apache, which reprocesses it and applies additional rewrite rules. For example:<\/p>\n<pre class=\"wp-block-preformatted\">RewriteRule ^(.*)(\/PAN_help\/)(.*).(css|js|html|htm)$ $1$2$3.$4.gz [QSA,L]<\/pre>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXf88UVivSWymoYH55bX3aDBLyGnDhiLfhU_Vvjc9BHz7gJyWWAvLRRmDulPJsBbNsBK_0xyKtvTUS146uENqTCS2tbkeAYE7IOhTOU-5S2UkDLpbYUCBTUZXywS3HMrd4aUrZprMA?key=_uQTdH6mMVlkyBDbFsRzENZ6\" alt=\"\"><figcaption class=\"wp-element-caption\">Authentication bypass in the PAN-OS\u00a0<\/figcaption><\/figure>\n<p><a href=\"https:\/\/slcyber.io\/blog\/nginx-apache-path-confusion-to-auth-bypass-in-pan-os\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">According to<\/a> Assetnote researchers, the vulnerability arises due to double URL decoding during Apache\u2019s internal redirection process.\u00a0<\/p>\n<p>A specially crafted request such as \/unauth\/%252e%252e\/php\/ztp_gate.php\/PAN_help\/x.css exploits this behavior.\u00a0<\/p>\n<p>Initially, Nginx decodes %252e%252e into %2e%2e, failing to recognize it as a directory traversal attempt. However, during Apache\u2019s internal redirect, the URL is decoded again into ..\/, allowing unauthorized access to sensitive <a href=\"https:\/\/cybersecuritynews.com\/critical-php-remote-code-execution-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">PHP scripts<\/a> like ztp_gate.php.\u00a0<\/p>\n<p>Since Nginx has already set X-pan-AuthCheck: off, no <a href=\"https:\/\/cybersecuritynews.com\/authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\">authentication<\/a> is enforced.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Exploitation Impact<\/strong><\/h2>\n<p>By exploiting this flaw, an attacker can bypass the authentication mechanism entirely and execute PHP scripts within the management interface.\u00a0<\/p>\n<p>While this does not allow <a href=\"https:\/\/cybersecuritynews.com\/windows-ole-remote-code-execution-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">remote code execution<\/a> directly, it poses severe risks to the confidentiality and integrity of PAN-OS systems by exposing sensitive administrative functionalities.<\/p>\n<p>A proof-of-concept (PoC) request demonstrates how an attacker could exploit this issue:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeTVm9XrWJmvOM26-TfO0OU07MYTnxgnljuDHvB0f6leNBKp0Nq1AQtaxyuNVGlSeN2NJr2TMs8KPyRA-dK88Cbu6D6W_SVLOlTxR1tdFz2st-r5riwKcVcdyBxX4aMX4O0p-EI4A?key=_uQTdH6mMVlkyBDbFsRzENZ6\" alt=\"\"><\/figure>\n<\/div>\n<p>The server responds with a 200 OK status, granting unauthorized access to restricted resources.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Mitigation and Recommendations<\/strong><\/h2>\n<p>Palo Alto Networks has <a href=\"https:\/\/slcyber.io\/blog\/nginx-apache-path-confusion-to-auth-bypass-in-pan-os\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">addre<\/a>s<a href=\"https:\/\/slcyber.io\/blog\/nginx-apache-path-confusion-to-auth-bypass-in-pan-os\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">sed<\/a> this vulnerability in the following versions:<\/p>\n<ul class=\"wp-block-list\">\n<li>PAN-OS 11.2: Fixed in 11.2.4-h4 and later.<\/li>\n<li>PAN-OS 11.1: Fixed in 11.1.6-h1 and later.<\/li>\n<li>PAN-OS 10.2: Fixed in 10.2.13-h3 and later.<\/li>\n<li>PAN-OS 10.1: Fixed in 10.1.14-h9 and later.<\/li>\n<\/ul>\n<p>Users are strongly advised to upgrade their PAN-OS installations immediately to these patched versions or newer releases.\u00a0<\/p>\n<p>Additionally, <a href=\"https:\/\/cybersecuritynews.com\/palo-alto-networks-expedition-firewall-passwords\/\" target=\"_blank\" rel=\"noreferrer noopener\">Palo Alto Networks<\/a> recommends restricting access to the management web interface by whitelisting trusted internal IP addresses as a best practice.<\/p>\n<p>Organizations using PAN-OS should act swiftly to patch affected systems and implement robust access controls for their management interfaces to mitigate potential exploitation risks.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 93%,rgb(169,184,195) 100%)\"><strong>PCI DSS 4.0 &amp; Supply Chain Attack Prevention \u2013\u00a0<a href=\"https:\/\/webinars.indusface.com\/reducing-3rd-party-risks-pci-dss-and-supply-chain-attack-prevention\/register?utm_source=gbhackers-side-banner&amp;utm_campaign=2025-feb-webinar-pci-dss&amp;utm_medium=referral\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Free Webinar<\/a><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/path-confusion-in-nginx-apache-leads-to-critical-auth\/\">Path Confusion in Nginx\/Apache Leads to Critical Auth Bypass in PAN-OS<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Kaaviya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/path-confusion-in-nginx-apache-leads-to-critical-auth\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Path Confusion in Nginx\/Apache Leads to Critical Auth Bypass in PAN-OS Palo Alto Networks has recently disclosed a critical vulnerability in its PAN-OS network security operating system, tracked as CVE-2025-0108, which allows attackers to bypass authentication on the management web interface.\u00a0 This vulnerability, with a CVSSv3.1 score of 7.8, exposes affected systems to significant threats [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,648],"tags":[130],"class_list":["post-1954","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1954"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=1954"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1954\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=1954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=1954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=1954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}