Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1325 CNY

100%

CVE-2022-36067 PoC — vm2 vulnerable to Sandbox Escape before v3.9.11

Source
Associated Vulnerability
Title:vm2 vulnerable to Sandbox Escape before v3.9.11 (CVE-2022-36067)
Description:vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. In versions prior to version 3.9.11, a threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.11 of vm2. There are no known workarounds.
Description
This repo contains payload for the CVE-2022-36067
Readme
# Exploit-For-CVE-2022-36067
This repo contains payload for the CVE-2022-36067

## How to exploit?
Paste the payload given in payload.js along with the command you want to run.

## Test on local machine.
To test on local machine, git clone the repo, install the dependecies and run app.js using node. 

#### If the application is vulnerable, the code will get executed successfully. If not, it will throw an error which would like this:
<code>TypeError: 
Cannot read properties of undefined (reading 'mainModule')
(Use `node --trace-uncaught ...` to show where the exception was thrown)</code>

File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →