PromZard library vulnerable to remote code execution
The PromZard library, used for automating configuration workflows in Node.js, has a flaw that allows attackers to run arbitrary code. This happens when an attacker can influence the keys in a context object, which are then used to build a function that gets executed. If an attacker can control the keys, they can inject malicious JavaScript code.
The library is designed to generate data objects through interactive prompting, and it uses a context object to expose specific data to template modules. However, the library does not properly validate the keys in this object, treating them as JavaScript code instead of data. This allows an attacker to break out of the function and inject arbitrary code.
Read the full article on kb.cert.org
This brief was written with AI from the original article and checked for copied wording. Confirm details with kb.cert.org before acting. Spotted an error, or are you the publisher and want this brief removed? Email us and we will act on it promptly.