LAquis SCADA LGX Report File BlockWrite Arbitrary File Creation Vulnerability
A crafted LGX report file can contain script that uses the File.BlockWrite method to create files in arbitrary locations. An attacker could use this to run code as the current user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of LAquis SCADA Software. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
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
An attacker could execute arbitrary code in the context of the current user, but the victim must first open a malicious file or visit a malicious page.
What the attacker needed
Victim opens a crafted LGX file; victim visits a malicious page
The fix
The vendor 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.
A report file format used by an industrial control program can carry script, and that script is allowed to write files wherever it likes. Because the program trusts the file, opening a malicious one lets the attacker drop files on the machine. Those files can then be used to run the attacker's code as the logged-in user.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.