Quest Foglight for Databases renderTemplateString Server-Side Template Injection Remote Code Execution Vulnerability
The renderTemplateString method in Quest Foglight for Databases fails to validate user-supplied input before passing it to a template engine. An authenticated attacker could exploit this to execute arbitrary code with SYSTEM privileges.
06fe5fd2bc53027c4a3b7e395af0b850e7b8a044 Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Quest Foglight for Databases. Authentication is required to exploit this vulnerability.
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 renderTemplateString method passes user-controlled input directly to a template engine without sanitising or restricting template syntax.
Impact
An authenticated attacker could execute arbitrary code in the context of the SYSTEM account, giving full control of the server.
What the attacker needed
Valid credentials for Foglight; access to a feature using renderTemplateString
The fix
The vulnerability was fixed in Foglight 8.3.
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 template engine is a tool that builds web pages or documents by filling in placeholders with data. Here, the software lets a logged-in user supply a string that is treated as part of the template itself, so the user can insert instructions the engine will run. Because those instructions run on the server, an attacker with an account could run their own code on the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.