1
0
mirror of https://github.com/django/django.git synced 2025-07-14 06:39:24 +00:00

16203 Commits

Author SHA1 Message Date
Carlton Gibson
2da029d854 [2.2.x] Bumped version for 2.2.24 release. 2021-06-02 10:28:20 +02:00
Mariusz Felisiak
f27c38ab5d [2.2.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:26:22 +02:00
Florian Apolloner
053cc9534d [2.2.x] Fixed CVE-2021-33203 -- Fixed potential path-traversal via admindocs' TemplateDetailView. 2021-06-02 10:26:22 +02:00
Mariusz Felisiak
5fe4970bd0 [2.2.x] Post-release version bump. 2021-05-13 09:22:34 +02:00
Mariusz Felisiak
61f814f9fa [2.2.x] Bumped version for 2.2.23 release. 2021-05-13 09:19:56 +02:00
Mariusz Felisiak
b8ecb06436 [2.2.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 09:00:25 +02:00
Mariusz Felisiak
7ada1f90c6 [2.2.x] Post-release version bump. 2021-05-06 09:10:34 +02:00
Mariusz Felisiak
df9fd4661e [2.2.x] Bumped version for 2.2.22 release. 2021-05-06 09:08:28 +02:00
Mariusz Felisiak
d9594c4ea5 [2.2.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:53:27 +02:00
Carlton Gibson
3931dc7651 [2.2.x] Post-release version bump. 2021-05-04 10:24:07 +02:00
Carlton Gibson
ff1385ae45 [2.2.x] Bumped version for 2.2.21 release. 2021-05-04 10:18:53 +02:00
Florian Apolloner
04ac1624bd [2.2.x] Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads. 2021-04-27 19:10:08 +02:00
Mariusz Felisiak
e95fbb6a76 [2.2.x] Post-release version bump. 2021-04-06 08:45:22 +02:00
Mariusz Felisiak
ad9fa56a17 [2.2.x] Bumped version for 2.2.20 release. 2021-04-06 08:39:37 +02:00
Mariusz Felisiak
4036d62bda [2.2.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:38:19 +02:00
Carlton Gibson
1fb4628a83 [2.2.x] Post-release version bump. 2021-02-19 09:45:49 +01:00
Carlton Gibson
21a5547793 [2.2.x] Bumped version for 2.2.19 release. 2021-02-19 09:44:55 +01:00
Nick Pope
fd6b6afd59 [2.2.x] Fixed CVE-2021-23336 -- Fixed web cache poisoning via django.utils.http.limited_parse_qsl(). 2021-02-18 10:27:25 +01:00
Mariusz Felisiak
06ae7e0742 [2.2.x] Post-release version bump. 2021-02-01 09:49:28 +01:00
Mariusz Felisiak
fc0c8cfa49 [2.2.x] Bumped version for 2.2.18 release. 2021-02-01 09:43:16 +01:00
Mariusz Felisiak
21e7622dec [2.2.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:14:54 +01:00
Carlton Gibson
3da29a30c6 [2.2.x] Post-release version bump. 2020-11-02 08:55:25 +01:00
Carlton Gibson
c769f65c98 [2.2.x] Bumped version for 2.2.17 release. 2020-11-02 08:49:01 +01:00
Carlton Gibson
0696540e23 [2.2.x] Post-release version bump. 2020-09-01 10:43:21 +02:00
Carlton Gibson
bf07047f45 [2.2.x] Bumped version for 2.2.16 release. 2020-09-01 10:30:56 +02:00
Mariusz Felisiak
a3aebfdc81 [2.2.x] Fixed CVE-2020-24584 -- Fixed permission escalation in intermediate-level directories of the file system cache on Python 3.7+.
Backport of f56b57976133129b0b351a38bba4ac882badabf0 from master.
2020-08-25 11:09:40 +02:00
Mariusz Felisiak
375657a71c [2.2.x] Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level static and storage directories on Python 3.7+.
Thanks WhiteSage for the report.

Backport of ea0febbba531a3ecc8c77b570efbfb68ca7155db from master.
2020-08-25 10:59:42 +02:00
Gert Burger
0a7d321bf7 [2.2.x] Fixed #31863 -- Prevented mutating model state by copies of model instances.
Regression in bfb746f983aa741afa3709794e70f1e0ab6040b5.

Backport of 94ea79be137f3cb30949bf82198e96e094f2650d from master
2020-08-13 15:28:21 +02:00
Daniel Hillier
839f906a23 [2.2.x] Fixed #31866 -- Fixed locking proxy models in QuerySet.select_for_update(of=()).
Backport of 60626162f76f26d32a38d18151700cb041201fb3 from master
2020-08-11 12:33:18 +02:00
Mariusz Felisiak
337dd0221e [2.2.x] Post-release version bump. 2020-08-03 09:12:12 +02:00
Mariusz Felisiak
bf6c58435d [2.2.x] Bumped version for 2.2.15 release. 2020-08-03 09:10:01 +02:00
Florian Apolloner
1a3835fdf3 [2.2.x] Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.

Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.

See https://bugs.python.org/issue39073

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 96a3ea39ef0790dbc413dde0a3e19f6a769356a2 from master.
2020-07-20 08:11:30 +02:00
Mariusz Felisiak
f1a6e6c817 [2.2.x] Fixed #31790 -- Fixed setting SameSite cookies flag in HttpResponse.delete_cookie().
Cookies with the "SameSite" flag set to None and without the "secure"
flag will be soon rejected by latest browser versions.

This affects sessions and messages cookies.

Backport of 331324ecce1330dce3dbd1713203cb9a42854ad7 from stable/3.0.x
2020-07-16 09:35:35 +02:00
Mariusz Felisiak
202ac0b2a1 [2.2.x] Post-release version bump. 2020-07-01 06:42:42 +02:00
Mariusz Felisiak
74934f7e43 [2.2.x] Bumped version for 2.2.14 release. 2020-07-01 06:37:55 +02:00
Mariusz Felisiak
b2b2723512 [2.2.x] Fixed #31654 -- Fixed cache key validation messages.
Backport of 926148ef019abcac3a9988c78734d9336d69f24e from master.
2020-06-05 07:24:04 +02:00
Carlton Gibson
2661c22eb1 [2.2.x] Post-release version bump. 2020-06-03 10:50:32 +02:00
Carlton Gibson
8093aaa8ff [2.2.x] Bumped version for 2.2.13 release. 2020-06-03 10:49:41 +02:00
Dan Palmer
07e59caa02 [2.2.x] Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends. 2020-06-03 09:34:29 +02:00
Jon Dufresne
6d61860b22 [2.0.x] Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget. 2020-06-03 09:33:38 +02:00
Carlton Gibson
2b69680264
[2.2.x] Refs #31485 -- Backported jQuery upgrade to 3.5.1. 2020-06-02 14:35:54 +02:00
Mariusz Felisiak
8301bc9cfa [2.2.x] Fixed E128, E741 flake8 warnings.
Backport of 0668164b4ac93a5be79f5b87fae83c657124d9ab from master.
2020-06-02 11:04:23 +02:00
Carlton Gibson
027840d7de [2.2.x] Fixed #31570 -- Corrected translation loading for apps providing territorial language variants with different plural equations.
Regression in e3e48b00127c09eafe6439d980a82fc5c591b673.

Thanks to Shai Berger for report, reproduce and suggested fix.

Backport of dd1ca50b096bf0351819aabc862e91a9797ddaca from master.
2020-06-01 09:29:03 +02:00
Carlton Gibson
3ab5235d1d [2.2.x] Post-release version bump. 2020-04-01 09:49:23 +02:00
Carlton Gibson
fb4d8bf799 [2.2.x] Bumped version for 2.2.12 release. 2020-04-01 09:42:18 +02:00
Claude Paroz
996be04c3c [2.2.x] Fixed #30439 -- Added support for different plural forms for a language.
Thanks to Michal Čihař for review.
Backport of e3e48b00127c09eafe6439d980a82fc5c591b673 from master
2020-03-10 16:04:58 +01:00
Mariusz Felisiak
b92e81120c [2.2.x] Post-release version bump. 2020-03-04 09:38:41 +01:00
Mariusz Felisiak
1676992788 [2.2.x] Bumped version for 2.2.11 release. 2020-03-04 09:35:39 +01:00
Mariusz Felisiak
fe886a3b58 [2.2.x] Fixed CVE-2020-9402 -- Properly escaped tolerance parameter in GIS functions and aggregates on Oracle.
Thanks to Norbert Szetei for the report.
2020-03-04 09:34:39 +01:00
Abhijeet Viswa
32d89bf114 [2.2.x] Fixed #31246 -- Fixed locking models in QuerySet.select_for_update(of=()) for related fields and parent link fields with multi-table inheritance.
Partly regression in 0107e3d1058f653f66032f7fd3a0bd61e96bf782.

Backport of 1712a76b9dfda1ef220395e62ea87079da8c9f6c from master.
2020-02-11 21:37:17 +01:00