-
Notifications
You must be signed in to change notification settings - Fork 8
Hardening suggestions for pygoat / view-returns-hash #10
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
base: view-returns-hash
Are you sure you want to change the base?
Conversation
| shell=False, stdout=subprocess.PIPE, | ||
| stderr=subprocess.PIPE) | ||
| stdout, stderr = process.communicate() | ||
| data = stdout.decode('utf-8') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set shell keyword argument to False
| doc = parseString(request.body.decode('utf-8'), parser=parser) | ||
| doc = defusedxml.pulldom.parseString(request.body.decode('utf-8'), parser=parser) | ||
| for event, node in doc: | ||
| if event == START_ELEMENT and node.tagName == 'text': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace builtin XML method with safe defusedxml method
| Werkzeug==2.1.2 | ||
| whitenoise==6.2.0 | ||
| zipp==3.8.0 | ||
| security==1.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This library holds security tools for protecting Python API calls.
License: MIT ✅ Open Source ✅ More facts
|


I've reviewed the recently opened PR (9 - Add view that returns hash of the given string) and have identified some area(s) that could benefit from additional hardening measures.
These changes should help prevent potential security vulnerabilities and improve overall code quality.
Thank you for your consideration!
🧚🤖 Powered by Pixeebot
Feedback | Community | Docs