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

Fix up some warnings and errors in docs #817

Merged
merged 1 commit into from Feb 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bandit/plugins/app_debug.py
Expand Up @@ -33,7 +33,7 @@
.. [1] https://flask.palletsprojects.com/en/1.1.x/quickstart/#debug-mode
.. [2] https://werkzeug.palletsprojects.com/en/1.0.x/debug/
.. [3] https://labs.detectify.com/2015/10/02/how-patreon-got-hacked-publicly-exposed-werkzeug-debugger/
.. [4] https://cwe.mitre.org/data/definitions/94.html
.. https://cwe.mitre.org/data/definitions/94.html

.. versionadded:: 0.15.0

Expand Down
1 change: 1 addition & 0 deletions bandit/plugins/snmp_security_check.py
Expand Up @@ -20,6 +20,7 @@ def snmp_insecure_version_check(context):
:Example:

.. code-block:: none

>> Issue: [B508:snmp_insecure_version_check] The use of SNMPv1 and
SNMPv2 is insecure. You should use SNMPv3 if able.
Severity: Medium Confidence: High
Expand Down
3 changes: 2 additions & 1 deletion bandit/plugins/yaml_load.py
Expand Up @@ -19,6 +19,8 @@

:Example:

.. code-block:: none

>> Issue: [yaml_load] Use of unsafe yaml load. Allows instantiation of
arbitrary objects. Consider yaml.safe_load().
Severity: Medium Confidence: High
Expand All @@ -28,7 +30,6 @@
5 y = yaml.load(ystr)
6 yaml.dump(y)


.. seealso::

- https://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML
Expand Down