python - Django 管理表单可以使用跨站请求伪造 (CSRF) 进行操作

标签 python django security csrf

在我的 Django 管理站点中,我运行了一个漏洞测试,它显示了以下威胁:

An effective CSRF (Cross-Site Request Forgery) countermeasure for forms is to 
include a hidden field with a random value specific to the user's current session.
A form was detected that did not appear to contain an anti-CSRF token. 
This form was tested for susceptibility to a CSRF attack and determined to be vulnerable.

我查看我的管理页面;已经设置了 CSRF。

最佳答案

自动化工具通常会误报 Django 的 CSRF 保护。 Django 安全团队收到许多这样的无效报告。

关于python - Django 管理表单可以使用跨站请求伪造 (CSRF) 进行操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34835332/

相关文章:

python - 如何使用 PyGame 计时器事件?如何使用计时器将时钟添加到 pygame 屏幕?

python - 有 numpy "max minus min"函数吗?

api - 解析用户对象 ACL

python - Django 自定义标签未呈现 (GAE)

python json序列化日期时间

c++ - c/c++中void指针的使用

java - 从 HTTPS 重定向到第 3 方 HTTP 页面,没有证书错误

python - 如何在python中的列表中找到最小的最接近数字

Python GUI - 将一个类中的一个 GUI 链接到另一个类

javascript - 将 Dojo 与 Django 集成