1
0
mirror of https://github.com/django/django.git synced 2025-07-17 16:19:12 +00:00

3764 Commits

Author SHA1 Message Date
Mariusz Felisiak
7db9517a04 [3.1.x] Added CVE-2021-44420 to security archive.
Backport of 8747052411275d290b2152ffcb8dee11afbb82cd from main
2021-12-07 08:55:21 +01:00
Florian Apolloner
22bd174881 [3.1.x] Fixed #30530, CVE-2021-44420 -- Fixed potential bypass of an upstream access control based on URL paths.
Thanks Sjoerd Job Postmus and TengMA(@te3t123) for reports.

Backport of d4dcd5b9dd9e462fec8220e33e3e6c822b7e88a6 from main.
2021-12-07 06:56:06 +01:00
Mariusz Felisiak
cfb780dafe [3.1.x] Added stub release notes 3.1.14 and 2.2.25.
Backport of ae4077e13ea2e4c460c3f21b9aab93a696590851 from main.
2021-11-30 11:28:20 +01:00
Jacob Walls
cd391be832 [3.1.x] Fixed typo in docs/releases/3.1.13.txt.
Backport of 00c724f2f255bd3c28a73cc51db8a052644ff949 from main
2021-07-16 20:31:11 +02:00
Mariusz Felisiak
2efb39deb8 [3.1.x] Added CVE-2021-35042 to security archive.
Backport of 8feb2a49fa37528823cc900bbd9609319738193e from main
2021-07-01 10:02:52 +02:00
Simon Charette
0bd57a879a [3.1.x] Fixed CVE-2021-35042 -- Prevented SQL injection in QuerySet.order_by().
Regression introduced in 513948735b799239f3ef8c89397592445e1a0cd5
by marking the raw SQL column reference feature for deprecation in
Django 4.0 while lifting the column format validation.

In retrospective the validation should have been kept around and the
user should have been pointed at using RawSQL expressions during the
deprecation period.

The main branch is not affected because the raw SQL column reference
support has been removed in 06eec3197009b88e3a633128bbcbd76eea0b46ff
per the 4.0 deprecation life cycle.

Thanks Joel Saunders for the report.
2021-07-01 08:36:17 +02:00
Mariusz Felisiak
8dc1cc0b30 [3.1.x] Added stub release notes for 3.1.13.
Backport of 8e97698d7b537cd298438a8d7b55916d275ff851 from main.
2021-07-01 06:59:22 +02:00
Mariusz Felisiak
1471ec4e1b [3.1.x] Fixed docs header underlines in security archive.
Backport of d9cee3f5f2f90938d2c2c0230be40c7d50aef53d from main
2021-06-02 12:26:59 +02:00
Carlton Gibson
6022181d85 [3.1.x] Added CVE-2021-33203 and CVE-2021-33571 to security archive.
Backport of a39f235ca4cb7370dba3a3dedeaab0106d27792f from main
2021-06-02 11:18:36 +02:00
Mariusz Felisiak
203d4ab9eb [3.1.x] Fixed CVE-2021-33571 -- Prevented leading zeros in IPv4 addresses.
validate_ipv4_address() was affected only on Python < 3.9.5, see [1].
URLValidator() uses a regular expressions and it was affected on all
Python versions.

[1] https://bugs.python.org/issue36384
2021-06-02 10:38:07 +02:00
Florian Apolloner
20c67a0693 [3.1.x] Fixed CVE-2021-33203 -- Fixed potential path-traversal via admindocs' TemplateDetailView. 2021-06-02 10:38:07 +02:00
Carlton Gibson
aa8781c0a6 [3.1.x] Confirmed release date for Django 3.1.12, and 2.2.24.
Backport of f66ae7a2d5558fe88ddfe639a610573872be6628 from main
2021-06-02 10:22:02 +02:00
Carlton Gibson
c7fdc790cf [3.1.x] Added stub release notes and date for Django 3.1.12 and 2.2.24.
Backport of b46dbd4e3e255223078ae0028934ea986e19ebc1 from main
2021-05-26 10:19:28 +02:00
Mariusz Felisiak
024e969062 [3.1.x] Changed IRC references to Libera.Chat.
Backport of 66491f08fe86629fa25977bb3dddda06959f65e7 from main.
2021-05-20 12:29:31 +02:00
Mariusz Felisiak
b7d4a6fa65 [3.1.x] Fixed #32718 -- Relaxed file name validation in FileField.
- Validate filename returned by FileField.upload_to() not a filename
  passed to the FileField.generate_filename() (upload_to() may
  completely ignored passed filename).
- Allow relative paths (without dot segments) in the generated filename.

Thanks to Jakub Kleň for the report and review.
Thanks to all folks for checking this patch on existing projects.
Thanks Florian Apolloner and Markus Holtermann for the discussion and
implementation idea.

Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3.

Backport of b55699968fc9ee985384c64e37f6cc74a0a23683 from main.
2021-05-13 08:56:06 +02:00
Mariusz Felisiak
9fb9944d1c [3.1.x] Refs #32718 -- Corrected CVE-2021-31542 release notes.
Backport of d1f1417caed648db2f81a1ec28c47bf958c01958 from main.
2021-05-12 10:43:12 +02:00
Mariusz Felisiak
0688874504 [3.1.x] Added CVE-2021-32052 to security archive.
Backport of efebcc429f048493d6bc710399e65d98081eafd5 from main
2021-05-06 10:04:52 +02:00
Mariusz Felisiak
afb23f5929 [3.1.x] Fixed #32713, Fixed CVE-2021-32052 -- Prevented newlines and tabs from being accepted in URLValidator on Python 3.9.5+.
In Python 3.9.5+ urllib.parse() automatically removes ASCII newlines
and tabs from URLs [1, 2]. Unfortunately it created an issue in
the URLValidator. URLValidator uses urllib.urlsplit() and
urllib.urlunsplit() for creating a URL variant with Punycode which no
longer contains newlines and tabs in Python 3.9.5+. As a consequence,
the regular expression matched the URL (without unsafe characters) and
the source value (with unsafe characters) was considered valid.

[1] https://bugs.python.org/issue43882 and
[2] 76cd81d603

Backport of e1e81aa1c4427411e3c68facdd761229ffea6f6f from main.
2021-05-06 08:50:52 +02:00
Carlton Gibson
48b39a8e99 [3.1.x] Added CVE-2021-31542 to security archive.
Backport of 607ebbfba915de2d84eb943aa93654f31817a709 and
62b2e8b37e37a313c63be40e3223ca4e830ebde3 from main
2021-05-04 11:13:11 +02:00
Florian Apolloner
25d84d6412 [3.1.x] Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads. 2021-04-27 19:12:15 +02:00
Mariusz Felisiak
6b0c7e6f50 [3.1.x] Added CVE-2021-28658 to security archive.
Backport of 1eac8468cbde790fecb51dd055a439f4947d01e9 from main
2021-04-06 09:46:21 +02:00
Mariusz Felisiak
cca0d98118 [3.1.x] Fixed CVE-2021-28658 -- Fixed potential directory-traversal via uploaded files.
Thanks Claude Paroz for the initial patch.
Thanks Dennis Brinkrolf for the report.

Backport of d4d800ca1addc4141e03c5440a849bb64d1582cd from main.
2021-04-06 08:25:24 +02:00
Adam Johnson
95ee8fecb5 [3.1.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
2021-03-17 21:51:51 +01:00
Jacob Walls
200b71b593 [3.1.x] Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.
Backport of 0c7e880e13b837dd76276c04ebdc338bb76d1379 from master
2021-02-26 09:12:22 +01:00
Mariusz Felisiak
bdad3eb7ec [3.1.x] Added stub release notes for 3.1.8.
Backport of e0f82d7992ad7085dcf4ed096a6ad2e3ad89eaae from master
2021-02-25 20:30:29 +01:00
Markus Holtermann
7fffdc4aad [3.1.x] Updated links to DEPs.
Backport of 7cc6899d4176539e5d59a2e921b938904d3a8944 from master
2021-02-25 17:27:54 +01:00
Carlton Gibson
3668da8de8 [3.1.x] Added CVE-2021-23336 to security archive.
Backport of ab58f072502e86dfe21b2bd5cccdc5e94dce8d26 from master
2021-02-19 11:05:36 +01:00
Nick Pope
8f6d431b08 [3.1.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.limited_parse_qsl(). 2021-02-18 10:15:30 +01:00
Nick Pope
536d1174bb [3.1.x] Added documentation extlink for bugs.python.org.
Backport of d02d60eb0f032c9395199fb73c6cd29ee9bb2646 from master
2021-02-17 14:26:48 +01:00
Mariusz Felisiak
9efe832ee1 [3.1.x] Fixed #32403 -- Fixed re-raising DatabaseErrors when using only 'postgres' database.
Thanks Kazantcev Andrey for the report.

Regression in f48f671223a20b161ca819cf7d6298e43b8ba5fe.
Backport of f131841c601b9d4884adcdb284b4213c2ad89231 from master
2021-02-02 21:36:06 +01:00
Mariusz Felisiak
65d4c59da9 [3.1.x] Added stub release notes for 3.1.7.
Backport of 8d3c3a57174a072479978d60f5ecdb9fd3c2fd23 from master
2021-02-01 10:55:28 +01:00
Mariusz Felisiak
a930e77a83 [3.1.x] Added CVE-2021-3281 to security archive.
Backport of f749148d62ece28d208ab66b109f858215ba090a from master
2021-02-01 10:46:17 +01:00
Mariusz Felisiak
02e6592835 [3.1.x] Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract().
Thanks Florian Apolloner, Shai Berger, and Simon Charette for reviews.

Thanks Wang Baohua for the report.

Backport of 05413afa8c18cdb978fcdf470e09f7a12b234a23 from master.
2021-02-01 09:13:58 +01:00
Denis Skulimovskiy
82e1294602 [3.1.x] Fixed #32391 -- Used CSS flex properties for changelist filter.
Matched layout adjustment using flex from admin sidebar added in
d24ba1be7a53a113d19e2860c03aff9922efec24.

Filters would become squashed when viewport was
constrained or list display table became too wide.

Backport of 269a76714616fd7ad166a14113f3354bab8d9b65 from master
2021-01-28 15:55:51 +01:00
Carlton Gibson
fa203f1759 [3.1.x] Fixed #32348, Refs #29087 -- Corrected tutorial for updated deleting inlines UI.
Updated tutorial to match change in 24e540fbd71bd2b0843e751bde61ad0052a811b3
allowing deletion of original extra inlines.

Backport of f4272d000af598018247fe9687dac0fd02a29a7c from master
2021-01-27 08:48:14 +01:00
Carlton Gibson
622e37ca6d [3.1.x] Added stub release notes for 3.1.6.
Backport of 966ed414b2adfc9ecc26a9d529dec99d94262cd9 from master
2021-01-04 08:59:11 +01:00
Carlton Gibson
3bfe6da27b Added release date for 3.1.5.
Backport of 767917ed4901ca076572c7ec6806b91fb7581fdb from master.
2021-01-04 08:43:07 +01:00
Mariusz Felisiak
5fdc81d893 [3.1.x] Fixed #32304 -- Fixed prefixing STATIC_URL and MEDIA_URL by SCRIPT_NAME for absolute URLs with no domain.
Thanks Adam Hooper for the report.

Regression in c574bec0929cd2527268c96a492d25223a9fd576.
Backport of e13b71403bd1568abed237858127677144d43d23 from master
2020-12-31 13:19:34 +01:00
Mariusz Felisiak
6b4b7da740 [3.1.x] Fixed #32299 -- Prevented mutating handlers when processing middlewares marking as unused in an async context.
Thanks Hubert Bielenia for the report.
Backport of 98ad327864aed8df245fd19ea9d2743279e11643 from master
2020-12-29 09:06:03 +01:00
Jon Dufresne
5d41fd22dc [3.1.x] Added backticks to code literals in various docs.
Backport of 550297d20d085bc5a440d905cd3cb2e286588ca8 from master
2020-12-15 07:21:53 +01:00
sage
a891e1bb0a [3.1.x] Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle.
__isnull=True on key transforms should not match keys with NULL values.

Backport of 8d7085e0fd004af5431389f3d903aba6220d7957 from master
2020-12-11 11:18:15 +01:00
Mariusz Felisiak
d3e3d63bb1 [3.1.x] Added stub release notes for 3.1.5.
Backport of adb40d217ec57ade46b1394cfbf3c513dc669445 from master
2020-12-01 07:19:22 +01:00
Mariusz Felisiak
0313af7d8a [3.1.x] Added release date for 3.1.4.
Backport of 670261b8d6d8196943013ebe9698f99fd9dde43c from master
2020-12-01 06:25:27 +01:00
sage
a7935fe942 [3.1.x] Fixed #32203 -- Fixed QuerySet.values()/values_list() crash on key transforms with non-string values on SQLite.
Thanks Gordon Wrigley for the report.

Backport of fe6e5824218bab7cf47dee112d68325b338f9947 from master
2020-11-25 20:30:38 +01:00
Mariusz Felisiak
97bfe0cba5 [3.1.x] Fixed #32224 -- Avoided suppressing connection errors in supports_json_field on SQLite.
Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.

Thanks Juan Garcia Alvite for the report.
Backport of f5e5aac59ebbcea46b98d37834915de0f43d7cc8 from master
2020-11-25 12:21:29 +01:00
Hasan Ramezani
166c0d2474 [3.1.x] Fixed #32200 -- Fixed grouping by ExpressionWrapper() with Q objects.
Thanks Gordon Wrigley for the report.

Regression in df32fd42b84cc6dbba173201f244491b0d154a63.

Backport of fe9c7ded2996364f853c524b4421274717d89d5f from master
2020-11-19 21:42:14 +01:00
Carlton Gibson
012822c7f9 [3.1.x] Fixed #32202 -- Fixed autoreloader argument generation for Windows with Python 3.7-.
Backport of ead37dfb580136cc27dbd487a1f1ad90c9235d15 from master
2020-11-19 12:12:47 +01:00
Nick Pope
1f6e7fb4ab [3.1.x] Changed docs and a code comment to use gender-neutral pronouns.
Follow up to e1b77238171cc96f4451a06fb4682e2378896238.

Backport of 477c800443d091b5f36be9b5f83ce16c85da5879 from master.
2020-11-13 22:29:41 +01:00
Hannes Ljungberg
cc3870c30f [3.1.x] Fixed #32182 -- Fixed crash of JSONField nested key transforms with subquery annotations on PostgreSQL.
Backport of 0773837e15bb632afffb6848a58c59a791008fa1 from master
2020-11-10 08:13:03 +01:00
Carlton Gibson
8b3010a298 [3.1.x] Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.
Backport of ebb08d19424c314c75908bc6048ff57c2f872269 from master
2020-11-04 11:09:52 +01:00