Description
Hashgraph Guardian through version 3.5.1, fixed in commit 45fbe2f, contains an unsandboxed JavaScript execution vulnerability in the Custom Logic policy block worker that allows authenticated Standard Registry users to execute arbitrary code by passing user-supplied JavaScript expressions directly to the Node.js Function() constructor without isolation. Attackers can import native Node.js modules to read arbitrary files from the container filesystem, access process environment variables containing sensitive credentials such as RSA private keys, JWT signing keys, and API tokens, and forge valid authentication tokens for any user including administrators.
Problem types
CWE-668: Exposure of Resource to Wrong Sphere
Product status
Any version
45fbe2f7e0e8feee30105d42d66ed63fb6177ebe (git)
Credits
Christ Bouchuen
References
github.com/hashgraph/guardian/pull/5929
github.com/...ommit/45fbe2f7e0e8feee30105d42d66ed63fb6177ebe
www.vulncheck.com/...an-unsandboxed-javascript-execution-rce