Giter Club home page Giter Club logo

dotpy3's People

Contributors

dpk avatar minerobber9000 avatar sbp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dotpy3's Issues

Sandbox improvements

Understand that offering eval is inherently "dangerous" but the bar could be set a little higher.

Running the evaluator in a separate process for one would make it more difficult to modify the wsgi / flask service. It would prevent accessing the outer frames and thus the code / variables there of.

Not giving the evaluator write permission to the virtual env or fs at large. Perhaps even chroot, or even better use systemd-nspawn or lambda instead of ec2

Perhaps ro the chroot env, maybe squashfs

Exec the code with it's own empty globals and locals or make a custom importer / source code loader

Return to make response should just use stdout/err of the spawned evaluator process, not store stuff in stringio, which allows people to do output.readline=lambda: anything

These just some ideas idk that anyone really cares about the security of this or what people might be using the service for-- but in it's current form it allows for persistent changes to the service and spying/manipulation of other users requests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.