Hunting Reflected XSS in PAN-OS: A Case Study on CVE-2025–0133
A reflected cross-site scripting flaw existed in the GlobalProtect portal and gateway of PAN-OS, where the user parameter was reflected without proper escaping. An attacker could trick a user into clicking a crafted link to execute JavaScript in their browser, potentially leading to phishing, session hijacking, or credential theft.
Published on medium.com
Cross-site scripting (XSS) vulnerabilities remain one of the most common and potentially dangerous issues found in web applications. In this write-up, I’ll walk through a practical example of how to identify and test a reflected XSS vulnerability in Palo Alto Networks’ PAN-OS, specifically linked to the GlobalProtect…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application reflected the user-supplied 'user' parameter into the HTML response without proper output encoding or a Content Security Policy.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to phishing, session hijacking, or credential theft, especially in environments with Clientless VPN enabled.
What the attacker needed
Victim clicks a crafted link; Clientless VPN enabled (for higher impact)
The fix
The vulnerability was fixed according to the official advisory; the fix involves proper sanitisation and encoding of user-supplied input, and adding CSP headers.
How it was found
- Identify a target with a wildcard subdomain.
- Use Shodan to find exposed PAN-OS devices with GlobalProtect portals.
- Craft a URL to the /ssl-vpn/getconfig.esp endpoint with a malicious script in the user parameter.
- Send the crafted URL to a victim and check if the script executes (e.g., a prompt appears).
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so an attacker can make the site run their own code. Here, a part of the web address was echoed back into the page, letting an attacker run a script in the victim's browser if they clicked a link. This could let the attacker steal information or pretend to be the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.