jsreport vulnerable to code injection
jsreport versions before 3.11.3 hard-coded a vulnerable version of the vm2 library in its core component. An attacker could exploit this to gain the authority of the jsreport playground server or attack a user's installed jsreport client via a malicious webpage or HTML file.
jsreport/jsreport
Originally disclosed on huntr
jsreport prior to 3.11.3 had a version of vm2 vulnerable to CVE-2023-29017 hard coded in the package.json of the jsreport-core component. An attacker can use this vulnerability to obtain the authority of the jsreport playground server, or construct a malicious webpage/html file and send it to the user to attack the installed jsreport client.
From the GitHub Advisory Database (GHSA-g7rj-q722-245g, CC BY 4.0).
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 jsreport-core package pinned an outdated, vulnerable version of the vm2 sandbox library, allowing a sandbox escape.
Impact
An attacker could obtain the authority of the jsreport playground server or attack the installed jsreport client by sending a malicious webpage or HTML file.
What the attacker needed
Jsreport version before 3.11.3; attacker can send a malicious webpage or HTML file
The fix
The vulnerability was fixed by updating jsreport to version 3.11.3, which presumably uses a patched vm2.
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.
jsreport is a tool for generating reports, and it uses a library called vm2 to run code safely. The version of vm2 it used had a known security hole, so an attacker could break out of that safety and run their own code on the server or on a user's computer. This is like using a lock that is known to be easy to pick.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.