Questions tagged [sandbox]

Sandbox is a security mechanism for containing untrusted programs. Such programs could contain malicious code, which would harm the user's system.

Filter by
Sorted by
Tagged with
0 votes
2 answers
97 views

Is this a watertight javascript sandbox?

I am making a sandbox environment for javascript. For this I create a webworker with this function: (self is a webworkers global context) ...
Nightfall's user avatar
0 votes
0 answers
1k views

Pay with PayPal through cURL and verify

As All PayPal PHP SDK deprecated, I wrote a simple PHP class to make payment with PayPal through cURL and verifying it. Note : I didn't add shipment details for payment because didn't need that. For ...
Kranchi's user avatar
4 votes
0 answers
291 views

Running a JavaScript program from C# with sandboxing

I am using EdgeJS in my application. The application is used to run a user-provided javascript program from C#. Because we allow execution of user scripts some sandboxing is required. I am using vm2 ...
Aashish Upadhyay's user avatar
5 votes
1 answer
286 views

Sandbox file system for Java

I've recently started work on a hobby project that's basically a sandbox file system written in Java, slightly inspired by PhysicsFS. The point of the project is to separate what files a user can read/...
Charanor's user avatar
  • 181
4 votes
1 answer
75 views

modifying globals, "window", "global" and other objects, in a restorable way

Primary Concerns As long as the stash is not within scope, globals such as window/global would effectively be sanitized of any risky methods, such as eval The API feels complete, am I missing ...
r10y's user avatar
  • 336
30 votes
3 answers
17k views

Sandbox or safely execute eval

In a large project of mine, I've run into a situation where a client might need to run evaluated JavaScript code. I know, it makes me cringe too. One option is to manually parse it, but for future ...
user avatar
6 votes
1 answer
2k views

JavaScript Sandbox Pattern

Based on this Stack Overflow question I came up with the following code. I'd like your general thoughts about it. Code style, functional, logical, disadvantages, just anything you can come up based ...
steros's user avatar
  • 161