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

2024-06-08 22:28:07 发布

您现在位置:Python中文网/ 问答频道 /正文

在我的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。在


Tags: todjangoformanfor站点requestsite