Schneider Electric C-Bus Toolkit CONFIG SAVE Directory Traversal Remote Code Execution Vulnerability
The C-Gate 2 Service in Schneider Electric C-Bus Toolkit fails to validate user-supplied paths before using them in file operations, allowing a remote attacker to execute arbitrary code. Authentication is required but can be bypassed.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Schneider Electric C-Bus Toolkit. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
A remote attacker could execute arbitrary code in the context of the current user, though authentication is required and can be bypassed.
What the attacker needed
Network access to C-Gate 2 Service; authentication (bypassable)
The fix
Schneider Electric has issued an update to correct this vulnerability.
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 report has not been written yet. The Original tab links to the source.
This is a directory traversal bug: the software takes a file path from a user and uses it without checking it is safe. An attacker can craft a path that points outside the intended folder, and because the service also runs commands, they can run their own code on the machine. The attacker first needs to log in, but the report says the login can be bypassed.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.