Old CVE in my Old Organization
Citrix Gateway and ADC failed to sanitise URL query parameters, allowing an unauthenticated attacker to craft a URL that triggers an open redirect and cross-site scripting. The author found a previously worked-with organisation's Citrix gateway vulnerable and reported it, with one report accepted.
medium.com
Published on medium.com
Too soon to be back with another story. From reading blogs to writing one, I grew up fast😶🌫️.
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 product failed to sanitise URL query parameters before reflecting them, allowing script injection and redirect manipulation.
Impact
A remote, unauthenticated attacker could execute malicious JavaScript in the victim's browser and perform an open redirect, though the author's own testing was limited to confirming the vulnerable endpoints.
What the attacker needed
Internet-facing Citrix Gateway; victim clicks a crafted link
The fix
The vendor fixed the issue in later Citrix ADC and Gateway versions, and the organisation accepted the report.
How it was found
- Find internet-facing Citrix Gateway instances using search-engine queries for pages titled 'Citrix gateway'.
- Craft a URL that places a script payload in a query parameter of a logout endpoint.
- Open the crafted URL in a victim's browser to execute JavaScript in the context of the Citrix Gateway.
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.
Citrix Gateway is a remote-access product that many companies use to let staff reach internal apps. The bug is that it took part of the web address (the query string) and put it into the page without cleaning it, so a crafted link could run attacker-supplied JavaScript in the victim's browser. That kind of flaw is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.