28711 Commits

Author SHA1 Message Date
Mariusz Felisiak
efef2c1cf8 [3.1.x] Post-release version bump. 2021-12-07 07:00:56 +01:00
Mariusz Felisiak
840bebf1ee [3.1.x] Bumped version for 3.1.14 release. 3.1.14 2021-12-07 06:57:40 +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
Mariusz Felisiak
61c2d58d01 [3.1.x] Added 'formatter' to spelling wordlist.
Backport of e43a131887e2a316d4fb829c3a272ef0cbbeea80 from main
2021-10-12 15:17:36 +02:00
Mariusz Felisiak
9dd1f9572f [3.1.x] Fixed #33082 -- Fixed CommandTests.test_subparser_invalid_option on Python 3.9.7+.
Thanks Michał Górny for the report.

Backport of 50ed545e2fa02c51e0d1559b83624f256e4b499b from main.
2021-09-02 11:04:51 +02:00
Mariusz Felisiak
febc980e89 [3.1.x] Refs #31676 -- Updated technical board description in organization docs.
According to DEP 0010.

Backport of f2ed2211c26ba375390cb76725c95ae970a0fd1d from main.
2021-07-30 11:47:00 +02:00
Mariusz Felisiak
34a0bb5d50 [3.1.x] Refs #31676 -- Added Mergers and Releasers to organization docs.
According to DEP 0010.

Backport of 228ec8e015bac9751c8aef3107358fbb2cb3301b from main
2021-07-30 11:46:21 +02:00
Mariusz Felisiak
d94b1e44b2 [3.1.x] Refs #31676 -- Removed Core team from organization docs.
According to DEP 0010.

Backport of caa2dd08c4722c8702588f5dfe1fa4c506aa66fc from main
2021-07-30 11:46:16 +02: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
cb149dd194 [3.1.x] Refs #31676 -- Removed Django Core-Mentorship mailing list references in docs.
Backport of 37e8367c359cd115f109d82f99ff32be219f4928 from main
2021-07-13 20:24:38 +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
Mariusz Felisiak
f0dc8e66ca [3.1.x] Post-release version bump. 2021-07-01 08:40:02 +02:00
Mariusz Felisiak
43873b9c92 [3.1.x] Bumped version for 3.1.13 release. 3.1.13 2021-07-01 08:37:09 +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
Carlton Gibson
064c0c55af [3.1.x] Post-release version bump. 2021-06-02 10:43:27 +02:00
Carlton Gibson
625d3c1c64 [3.1.x] Bumped version for 3.1.12 release. 3.1.12 2021-06-02 10:39:54 +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
Nick Pope
a4eb07ac06 [3.1.x] Fixed typo in MiddlewareMixin deprecation note.
Backport of e513fb0e77baf2ebcbf2cbe366bdf0228d01119f from main.
2021-05-27 06:55:00 +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
c53a76bdbf [3.1.x] Post-release version bump. 2021-05-13 09:18:51 +02:00
Mariusz Felisiak
6efdf1b7e9 [3.1.x] Bumped version for 3.1.11 release. 3.1.11 2021-05-13 09:16:23 +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
020bb45b03 [3.1.x] Post-release version bump. 2021-05-06 09:06:53 +02:00
Mariusz Felisiak
a2407cd67b [3.1.x] Bumped version for 3.1.10 release. 3.1.10 2021-05-06 09:04:41 +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
fdbf4a7c16 [3.1.x] Refs CVE-2021-31542 -- Skipped mock AWS storage test on Windows.
The validate_file_name() sanitation introduced in
0b79eb36915d178aef5c6a7bbce71b1e76d376d3 correctly rejects the example
file name as containing path elements on Windows. This breaks the test
introduced in 914c72be2abb1c6dd860cb9279beaa66409ae1b2 to allow path
components for storages that may allow them.

Test is skipped pending a discussed storage refactoring to support this
use-case.

Backport of a708f39ce67af174df90c5b5e50ad1976cec7cb8 from main
2021-05-06 07:42:45 +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
Carlton Gibson
80124410fa [3.1.x] Post-release version bump. 2021-05-04 10:32:07 +02:00
Carlton Gibson
8284fd67b4 [3.1.x] Bumped version for 3.1.9 release. 3.1.9 2021-05-04 10:25:17 +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
5b9ca81f42 [3.1.x] Post-release version bump. 2021-04-06 08:31:58 +02:00
Mariusz Felisiak
c4928c9115 [3.1.x] Bumped version for 3.1.8 release. 3.1.8 2021-04-06 08:27:37 +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
tim-mccurrach
6eb01cb052 [3.1.x] Fixed #32576 -- Corrected dumpdata docs for passing model names to the --exclude option.
Backport of cf2f6fc558166656f29609e3864df9af81067d0c from main
2021-03-22 08:45:20 +01:00
Mariusz Felisiak
11d241dcf7 [3.1.x] Refs #25735 -- Added tags/exclude_tags arguments to DiscoverRunner docs.
Backport of 37044817f9a57126d655f216019e8c8cca7c151b from main.
2021-03-19 08:11:22 +01:00
Mariusz Felisiak
4a10c312c7 [3.1.x] Added parallel argument to DiscoverRunner docs.
Follow up to cd9fcd4e8073490a52c9e79133ada4661cb7db38.

Backport of f099ef3ef53f88160d04d7dcc73859801b05a83e from main.
2021-03-19 08:09:46 +01:00
Mariusz Felisiak
c528c71007 [3.1.x] Corrected DiscoverRunner.build_suite() signature.
Follow up to 9012833af857e081b515ce760685b157638efcef.

Backport of fc6fba0aa9e4575c9a1c23ad7031eebb1c112868 from main
2021-03-19 08:08:07 +01: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
Jozef
b58b214856 [3.1.x] Fixed typo in docs/topics/testing/advanced.txt.
Backport of 6993e1bf6dff04b6e3ab284b154397b341463b50 from main
2021-03-17 18:50:24 +01:00
Hasan Ramezani
0415ac5af9 [3.1.x] Fixed #32536 -- Added links to BaseDetailView/BaseListView.get() methods in CBV docs.
Backport of bc04941bf811d1ea2c79fb7fc20457ed2c7e3410 from main
2021-03-16 08:04:28 +01:00