My Latest Bug: Reflected XSS on GlobalProtect VPN Portal (CVE-202
The GlobalProtect VPN portal's getconfig.esp endpoint reflected the user parameter into the HTML response without sanitisation, allowing script execution. An attacker could run JavaScript in a victim's browser, for example to show fake login prompts for phishing.
Today, I’m excited to share with you my latest discovery of a Reflected Cross-Site Scripting (XSS) vulnerability found on a GlobalProtect VPN Portal powered by Palo Alto Networks.
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 endpoint echoed the user parameter into the HTML response without sanitising or encoding it.
Impact
The bug did not allow full compromise, but it could run JavaScript in a user's browser, which could be used for phishing through fake login prompts.
What the attacker needed
Victim opens a crafted link; target runs an unpatched PAN-OS portal
The fix
Input should be sanitised and special characters escaped before rendering, and PAN-OS should be updated to the patched version.
How it was found
- Search Shodan for exposed PAN-OS instances.
- Find the vulnerable getconfig.esp endpoint on a VPN portal.
- Put an SVG containing a script into the user parameter.
- Open the crafted URL and see the prompt box appear, confirming script execution.
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.
A VPN portal is a web page people use to connect to a company network. This page took a value from the web address and put it straight into the page it sent back, so text typed into the address could become code that runs in the visitor's browser. That kind of flaw is called reflected cross-site scripting, and it lets an attacker make a link that runs their code when someone opens it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.