Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sandbox can crash the process #49

Open
yorickvP opened this issue May 17, 2016 · 0 comments
Open

sandbox can crash the process #49

yorickvP opened this issue May 17, 2016 · 0 comments

Comments

@yorickvP
Copy link

Best not allow the user to specify message names (wrap them in another message). Messages starting with NODE_ have internal meanings (search the documentation for internalMessage).

Testcase:

const Sandbox = require('sandbox')

function runInSandbox() {
    postMessage({
        cmd: "NODE_HANDLE",
        type: "net.Server",
    })
}

void function() {
    const s = new Sandbox();
    s.run(`
        ${runInSandbox.toString()};
        runInSandbox();
    `)
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant