[Django] #36760: DisallowedRedirect triggering exceptions for simple bad bot traffic

4 views
Skip to first unread message

Django

unread,
Dec 1, 2025, 3:31:13 AM (2 days ago) Dec 1
to django-...@googlegroups.com
#36760: DisallowedRedirect triggering exceptions for simple bad bot traffic
------------------------+---------------------------------------
Reporter: minusf | Type: Bug
Status: new | Component: Core (URLs)
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+---------------------------------------
The latest changes to DisallowedRedirect (CVE-2025-64458) are triggering
thousands and thousands of exception emails and spam the logs when simple
bad bot traffic is sending requests without a trailing slash and longer
than `django.utils.http.MAX_URL_LENGTH`.

Tangentionally the docstring for `DisallowedRedirect` is now out of
date/incorrect:

{{{
class DisallowedRedirect(SuspiciousOperation):
"""Redirect to scheme not in allowed list"""
}}}

I feel like this is a bit overreacting and perhaps could be toned down
somehow?
--
Ticket URL: <https://code.djangoproject.com/ticket/36760>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 1, 2025, 3:34:01 AM (2 days ago) Dec 1
to django-...@googlegroups.com
#36760: DisallowedRedirect triggering exceptions for simple bad bot traffic
-----------------------------+--------------------------------------
Reporter: minusf | Owner: (none)
Type: Bug | Status: new
Component: Core (URLs) | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Comment (by minusf):

ah sorry, duplicate of #36743
--
Ticket URL: <https://code.djangoproject.com/ticket/36760#comment:1>

Django

unread,
Dec 1, 2025, 3:34:22 AM (2 days ago) Dec 1
to django-...@googlegroups.com
#36760: DisallowedRedirect triggering exceptions for simple bad bot traffic
-----------------------------+--------------------------------------
Reporter: minusf | Owner: (none)
Type: Bug | Status: closed
Component: Core (URLs) | Version: 5.2
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by minusf):

* resolution: => duplicate
* status: new => closed

--
Ticket URL: <https://code.djangoproject.com/ticket/36760#comment:2>
Reply all
Reply to author
Forward
0 new messages