Remote Code Execution — Gaining Domain Admin due to a typo
An authentication bypass in Xceedium Xsuite allowed an attacker to write a malicious serialised payload to a configuration file, which was later evaluated as PHP code, leading to remote code execution. The root cause was a typo in the shared key check that returned the string 'flase' instead of boolean false, which PHP treats as true.
medium.com
Published on medium.com
Firstly, apologies for the click-bait title, I did refrain from creating a custom website and logo so I believe this is a fair compromise. :)
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
Impact
An attacker could execute arbitrary commands on the device, and with root access could backdoor login.php to steal domain credentials, potentially gaining domain administrator access.
What the attacker needed
Network access to the device; ability to read local files
The fix
The typo should be corrected to return boolean false, and the shared key check should be properly implemented.
How it was found
- Use the arbitrary file read to read the failover.cfg file and discover the shared key is empty.
- Send a request to ajax_cmd.php with cmd=ACTACT, cmdtype=PUTCONFS, a shared_key of 32 whitespace characters, and a base64-encoded serialised payload containing PHP code.
- Verify the config file was poisoned by reading it back with the arbitrary file read.
- Invoke linkDB() via a request to ajax_cmd.php with cmd=get_applet_params to execute the injected PHP code.
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.
The login check for a secret key had a spelling mistake: it returned the word 'flase' instead of the value false. In PHP, any non-empty text like 'flase' counts as true, so the check passed even when the key was just spaces. This let the attacker write harmful code into a settings file, which the program later ran as a command.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.