mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[3.2.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.parse_qsl().
This commit is contained in:
committed by
Carlton Gibson
parent
0debc6ba5b
commit
be8237c7cc
@@ -6,7 +6,7 @@ from django.test.client import FakePayload
|
||||
class ExceptionHandlerTests(SimpleTestCase):
|
||||
|
||||
def get_suspicious_environ(self):
|
||||
payload = FakePayload('a=1&a=2;a=3\r\n')
|
||||
payload = FakePayload('a=1&a=2&a=3\r\n')
|
||||
return {
|
||||
'REQUEST_METHOD': 'POST',
|
||||
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
|
||||
|
||||
Reference in New Issue
Block a user