Logo

上一个主题

未创建文档的模块

下一个主题

扩展和嵌入 Python 解释器

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.2 Documentation »
  • Python 标准库 »
  • Security Considerations
  • |

Security Considerations¶

The following modules have specific security considerations:

  • base64: base64 security considerations in RFC 4648

  • cgi: CGI security considerations

  • hashlib: all constructors take a "usedforsecurity" keyword-only argument disabling known insecure and blocked algorithms

  • http.server is not suitable for production use, only implementing basic security checks

  • logging: Logging configuration uses eval()

  • multiprocessing: Connection.recv() uses pickle

  • pickle: Restricting globals in pickle

  • random shouldn't be used for security purposes, use secrets instead

  • shelve: shelve is based on pickle and thus unsuitable for dealing with untrusted sources

  • ssl: SSL/TLS security considerations

  • subprocess: Subprocess security considerations

  • tempfile: mktemp is deprecated due to vulnerability to race conditions

  • xml: XML vulnerabilities

  • zipfile: maliciously prepared .zip files can cause disk volume exhaustion

上一个主题

未创建文档的模块

下一个主题

扩展和嵌入 Python 解释器

本页

  • 提交 Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.10.2 Documentation »
  • Python 标准库 »
  • Security Considerations
  • |
© 版权所有 2001-2022, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 3月 06, 2022. Found a bug?
Created using Sphinx 3.2.1.