Skip to content

Horrible security flaw in cmd.py #75

@kahrkunne

Description

@kahrkunne

In cmd.py, line 201 says "out = eval(userInput)". This is an enormous security flaw, to the point where, if you are using cmd.py as cmd for lighthouse, even typing "os.system('rm -rf *')" in the window, without pressing enter, will delete all your files. ==SO DON'T DO THIS==

Being able to run an arbitrary command just by typing it is really horrible. Code shouldn't be executed just by typing it, and this is unlike any other behaviour in lighthouse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions