Who Doesn’t Like Cake
The Citrix SD-WAN Center had two authentication bypasses and two shell injection vulnerabilities. An attacker could combine the Collector authentication bypass with the stop_ping shell injection to achieve pre-authenticated remote code execution.
Published on medium.com
Everyone knows that Citrix takes security seriously. This is the story of how we gained remote code execution in the Citrix SD-WAN platform.
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 a combination of a URL parsing discrepancy between Apache and CakePHP that bypassed client certificate checks, and multiple places where user input was passed to shell commands without sanitisation.
Impact
An attacker could achieve remote code execution without authentication, allowing them to intercept traffic or take down the entire network.
What the attacker needed
Network access to the SD-WAN Center
The fix
Citrix should update the Apache configuration to normalise URLs before matching, and sanitise all user input passed to shell commands.
How it was found
- Send a request with a URI containing '://?' before the Collector path to bypass the client certificate requirement.
- Use the unauthenticated access to the stop_ping endpoint to read a file whose path is controlled by the req_id parameter.
- Upload a file with malicious content using the licensing upload endpoint.
- Trigger the stop_ping endpoint to execute the uploaded content as a shell command.
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 report describes several security holes in Citrix SD-WAN Center, a management tool for wide-area networks. One flaw let attackers skip the login check by crafting a special web address, and another let them run their own commands on the server. Together, these allowed an outsider to take full control of the system without any credentials.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.