... th , mod_auth_sspi , etc. When the web server takes care of authentication it typically provides the authenticated user as REMOTE_USER . In Django, this value is made available in request.META (as REMOTE_USER when supplied as an environment variable, a ... s in WSGI, or HTTP_REMOTE_USER when supplied via an HTTP header, as in ASGI). Django can be configured to make use of the REMOTE_USER value using th ... e RemoteUserMiddleware or PersistentRemoteUserMiddleware , and RemoteUserBackend classes found in django.contrib.auth . 設定 最初に ... ... equire the template author to put the ssi file in a user-controlled variable, but it's possible in principle. Mitigating a remote-code execution vulnerability in django.contrib.sessions django.contrib.sessions currently uses pickle to serialize session ... the cookie session storage signs the cookie-stored data to prevent tampering, a SECRET_KEY leak immediately escalates to a remote code execution vulnerability. This attack can be mitigated by serializing session data using JSON rather than pickle . To ... ... or a longer, step-by-step tutorial. Set up Fork the repository on GitHub, clone your fork to your machine, and configure a remote reference to Django's upstream repository: / $ git clone https://github.com/YourGitHubName/django.git $ cd django $ gi ... t remote add upstream https://github.com/django/django.git ...\> git clone https://github.com/YourGitHubName/django.git ...\> cd dj ... ango ...\> git remote add upstream https://github.com/django/django.git Confirm you're using a compatible version of Python , then set up a virt ... ... ication handler The django.contrib.auth.handlers.modwsgi.check_password() function for authentication via mod_wsgi allowed remote attackers to enumerate users via a timing attack. This issue has severity "low" according to the Django security policy . ... ice vulnerability via repeated headers when using ASGI When receiving duplicates of a single header, ASGIRequest allowed a remote attacker to cause a potential denial-of-service via a specifically created request with multiple duplicate headers. The vu ... ... ication handler The django.contrib.auth.handlers.modwsgi.check_password() function for authentication via mod_wsgi allowed remote attackers to enumerate users via a timing attack. This issue has severity "low" according to the Django security policy . ... ice vulnerability via repeated headers when using ASGI When receiving duplicates of a single header, ASGIRequest allowed a remote attacker to cause a potential denial-of-service via a specifically created request with multiple duplicate headers. The vu ... ... ication handler The django.contrib.auth.handlers.modwsgi.check_password() function for authentication via mod_wsgi allowed remote attackers to enumerate users via a timing attack. This issue has severity "low" according to the Django security policy . ... ice vulnerability via repeated headers when using ASGI When receiving duplicates of a single header, ASGIRequest allowed a remote attacker to cause a potential denial-of-service via a specifically created request with multiple duplicate headers. The vu ... ... sed incorrect results for dates in a leap year ( #27637 ). Fixed a regression where collectstatic overwrote newer files in remote storages ( #27658 ). ... ... ow: cd django Your GitHub repository will be called "origin" in Git. You should also set up django/django as an "upstream" remote (that is, tell git that the reference Django repository was the source of your fork of it): git remote add upstream https: ... //github.com/django/django.git git fetch upstream You can add other remotes similarly, for example: git remote add akaariai https://github.com/akaariai/django.git Working on a ticket When working o ... ... はありません。認証バックエンドは必ずしも is_active フラグをチェックしませんが、デフォルトのバックエンド ( ModelBackend ) と RemoteUserBackend はチェックを行います。非アクティブのユーザがログインできるようにしたい場合は、 AllowAllUsersModelBackend や All ... owAllUsersRemoteUserBackend を使うことができます。この場合、非アクティブのユーザを拒否してしまうので、 LoginView によって使われる Authentic ... うでしょう。非アクティブなユーザーを拒否する confirm_login_allowed() メソッドをオーバーライドすることが推奨されます。 class RemoteUserBackend [ソース] このバックエンドを使用して、Django 以外で処理される外部認証を利用します。これは、 request.META['REMOTE ... ... ors revealed by the new rollback approach; in the long-term tests should be rewritten to correct the test case. Removed SetRemoteAddrFromForwardedFor middleware For convenience, Django 1.0 included an optional middleware class -- django.middleware.http ... .SetRemoteAddrFromForwardedFor -- which updated the value of REMOTE_ADDR based on the HTTP X-Forwarded-For header commonly set by som ... despite documentation to the contrary) its inclusion in Django may lead application developers to assume that the value of REMOTE_ADDR is "safe" or in some way reliable as a source of authentication. While not directly a security issue, we've decided t ... 2026年10月08日