Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/django/security/injection/open-redirect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ rules:
- id: open-redirect
message: >-
Data from request ($DATA) is passed to redirect(). This is an open redirect and could be exploited.
Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url().
Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url() (for Django < 3.0)
or django.utils.http.url_has_allowed_host_and_scheme() (for Django ≥ 3.0).
See https://cwe.mitre.org/data/definitions/601.html for more information.
metadata:
cwe:
Expand Down