
Python script to test for CVE-2024-3400 RCE in Palo Alto GlobalProtect by sending crafted cookies with base64-encoded commands and analyzing responses.
This Python script is designed to test for a remote code execution (RCE) vulnerability, specifically CVE-2024-3400, which affects certain Palo Alto Networks GlobalProtect portals. The vulnerability allows unauthorized command execution via cookie manipulation.
The script sends a benign HTTP GET request to a list of specified URLs with a cookie payload that includes a base64-encoded command (echo test). If the command executes, it indicates potential vulnerability.
requests Python library to send HTTP GET requests with the malicious cookie.echo test command is encoded into base64.Run the script from the command line by providing the input file (containing URLs to test) and the output file (to store results):
python script_name.py input_file.txt output_file.txt
Replace script_name.py with your script's filename, input_file.txt with your input file, and output_file.txt with your desired output file.
requests library (install via pip install requests)Watchtowr Labs Analysis on CVE-2024-3400 This article provides an in-depth look at the CVE-2024-3400 vulnerability, detailing how it can be exploited and its potential impact.
LinkedIn Post by Justin Elze Justin Elze discusses the significance of the CVE-2024-3400 discovery and its implications for security in enterprise environments.
This script is for educational and testing purposes only. Use it responsibly. Executing this script without authorization on systems you do not own or have permission to test is unethical and illegal. Always ensure compliance with all applicable laws and regulations.