Second article of the Failed series!
The article describes a failed attempt to exploit a Pulse Secure VPN's embedded Guacamole component to achieve remote code execution via SSRF to PostgreSQL. The author could not complete the exploit chain and shares the debugging process and obstacles encountered.
thinkloveshare.com
Published on thinkloveshare.com
We often read articles or research that explain how to exploit X or how Y works. Most of the time this seems straightforward, and yet we all struggle doing our own research.
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 Guacamole component allows an authenticated user to configure a connection to an arbitrary internal host and port, enabling SSRF, but the exploit chain was not completed.
Impact
An attacker with administrative access could potentially achieve remote code execution on the internal PostgreSQL service, but the exploit was not successfully completed in this research.
What the attacker needed
Administrative access to Pulse Secure VPN; ability to create users and policies; victim (or attacker) uses Guacamole HTML5 access
How it was found
- Log in as an administrator to the Pulse Secure VPN admin panel.
- Create an authentication server, a realm, a user, a role, and a resource policy that points to the loopback address and PostgreSQL port.
- Log in as the regular user and access the Guacamole HTML5 connection.
- Attempt to inject a PostgreSQL exploit payload via the Guacamole clipboard feature over the WebSocket.
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.
This is a story about a security researcher trying to break into a VPN appliance. They found a way to make the device connect to an internal database (PostgreSQL) but couldn't finish the attack because the tools for manipulating the browser's WebSocket connection were too difficult to use. The article is more about the journey and the problems faced than a successful hack.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.