Skip to content

Commit

Permalink
Release 0.2.2 - Fix yaml load vulnerability.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew rowe committed Mar 28, 2019
1 parent 5738609 commit 7ab2820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flask_ipban/ip_ban.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def load_nuisances(self, file_name=None):

added_count = 0
with open(file_name) as f:
y = yaml.load(f)
y = yaml.load(f, Loader=yaml.SafeLoader)

for match_type in ['ip', 'string', 'regex']:
for value in y[match_type]:
Expand Down
1 change: 1 addition & 0 deletions pypar.commands.txt → pypar.commands.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Notes and commands to upload to pypi
#
# https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56
Expand Down

0 comments on commit 7ab2820

Please sign in to comment.