Siemens TeleControl Server Basic RestoreFromBackup SQL Injection Remote Code Execution Vulnerability
The RestoreFromBackup method in Siemens TeleControl Server Basic builds SQL queries from a user-supplied string without validating it, so the input can alter the query. A remote attacker who gets past the authentication mechanism could use this to run arbitrary code as the NETWORK SERVICE account.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Siemens TeleControl Server Basic. 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
Root cause
Likely the RestoreFromBackup method concatenates user-supplied input into SQL statements instead of using parameterised queries, allowing SQL injection.
Impact
An attacker could execute arbitrary code on the affected installation in the context of the NETWORK SERVICE account, though authentication is required and the existing authentication mechanism can be bypassed.
What the attacker needed
Network access to the product; authentication bypass
The fix
Siemens issued an update to correct the 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 software takes text from a user and pastes it straight into a database command, called a SQL query. Because the text is not checked, an attacker can add their own database instructions, and in this case that can lead to running their own code on the server. The report says the attacker must be logged in, but that the login check can be bypassed.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.