Description
KanaDojo before 0.1.18 contains a sandbox escape vulnerability that allows an attacker to execute arbitrary code by exploiting the explicit passing of the global require function into a Node.js vm.runInNewContext() sandbox context in the issue-auto-respond.yml workflow. Attackers can submit a pull request modifying messages.cjs to import arbitrary Node.js modules, bypassing sandbox restrictions and achieving remote code execution with full GitHub Actions runner privileges including access to AUTOMATION_PR_TOKEN.
Problem types
Product status
Any version before 0.1.18
Credits
Katriel Moses
VulnCheck
References
github.com/lingdojo/kana-dojo/releases/tag/v0.1.18
github.com/...ommit/31b85a5d7c4b323ddeba3b2dc5e7807558710544
www.vulncheck.com/...ojo-sandbox-escape-rce-via-messages-cjs