Hunting Bugs in the Shadows of a Global Energy Giant: The Reflec
A parameter named 'user' in an SSL VPN portal was reflected into the page without sanitisation, allowing reflected cross-site scripting. An attacker could run JavaScript in a victim's browser in the context of the VPN portal, potentially stealing session identifiers or spoofing the login interface.
Every once in a while, a vulnerability pops up in a place you’d least expect. Not in a flashy marketing website.
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 'user' query parameter was written into the HTML response without output encoding or sanitisation.
Impact
Because the flaw sits on the VPN entry point, an attacker could steal session identifiers, spoof login interface elements, redirect users to phishing pages, or run JavaScript in a privileged context; the text does not say whether a CSP or other defence limited it.
What the attacker needed
Victim clicks a crafted link; access to the SSL VPN portal
The fix
The portal should HTML-encode reflected parameters, add a strong Content Security Policy, and use libraries that prevent script injection by default; the text does not state that a fix was deployed.
How it was found
- Notice that the 'user' query parameter is reflected in the VPN portal response.
- Build a URL with an SVG payload that calls prompt() in that parameter.
- Open the crafted URL and observe the JavaScript prompt firing, 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 the web page employees use to connect securely to internal systems. Reflected cross-site scripting (XSS) means the site takes something from the URL and puts it straight into the page without cleaning it, so a crafted link can make the victim's browser run the attacker's JavaScript. Here that happened on a security-critical login page, which makes it more dangerous than on an ordinary blog.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.