2018 年 8 月 1 日
Django 2.0.8 fixes a security issue and several bugs in 2.0.7.
CommonMiddleware
¶If the CommonMiddleware
and the
APPEND_SLASH
setting are both enabled, and if the project has a
URL pattern that accepts any path ending in a slash (many content management
systems have such a pattern), then a request to a maliciously crafted URL of
that site could lead to a redirect to another site, enabling phishing and other
attacks.
CommonMiddleware
now escapes leading slashes to prevent redirects to other
domains.
5月 12, 2023