Skip to content

Python history file (.pythonhist) should not be world readable #489

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

Closed
jfalken opened this issue Feb 23, 2015 · 0 comments
Closed

Python history file (.pythonhist) should not be world readable #489

jfalken opened this issue Feb 23, 2015 · 0 comments

Comments

@jfalken
Copy link

jfalken commented Feb 23, 2015

The python history file (~./pythonhist by default), is created with world readable permissions (644).

(venv)chris:~/ $ ls -l ~/.pythonhist
-rw-r--r--  1 chris  staff  46 Feb 23 11:14 /Users/chris/.pythonhist

This can allow other users on the system to read bpython history, which may include passwords / API keys etc.

I believe the permissions should be 600 upon file creation.

sebastinas added a commit that referenced this issue Feb 23, 2015
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
(cherry picked from commit d4d9616)
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

No branches or pull requests

1 participant