Skip to content

python-fire: (1) PAGER+shell=True RCE in console_io.More (2) bash $(...) runs when sourcing --completion from maliciously named .py file. PoC verified. - #689

Open
ojassharma7 wants to merge 1 commit into
google:masterfrom
ojassharma7:autocontrib/issue-665
Open

python-fire: (1) PAGER+shell=True RCE in console_io.More (2) bash $(...) runs when sourcing --completion from maliciously named .py file. PoC verified.#689
ojassharma7 wants to merge 1 commit into
google:masterfrom
ojassharma7:autocontrib/issue-665

Conversation

@ojassharma7

Copy link
Copy Markdown

Fixes #665.

What changed

  • fire/completion.py
  • fire/completion_test.py
  • fire/console/console_io.py
  • fire/console/console_io_test.py

Verification

The project's own test suite was run before and after this change; it introduces no new test failures or lint violations.

…..) runs when sourcing --completion from maliciously named .py file. PoC verified.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python-fire: (1) PAGER+shell=True RCE in console_io.More (2) bash $(...) runs when sourcing --completion from maliciously named .py file. PoC verified.

1 participant