
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider.
django-admin-oauth2 should support Python 2.7 & Python 3.6 to 3.11, pypy, and Django versions 1.6 through 4
Step 1: pip install django-admin-oauth2
and include it in your project's requirements
Step 2: Include the django-admin-oauth2 urlconf in your project's urls.py:
Django 1.x
url(r'/admin/oauth/', include('oauthadmin.urls'))
Django >= 2.0
re_path(r'/admin/oauth/', include('oauthadmin.urls'))
Step 3: Include oauthadmin in your INSTALLED_APPS:
INSTALLED_APPS = (
'oauthadmin'
)
Step 4: Install the middleware in your project's settings.py:
MIDDLEWARE_CLASSES = (
'oauthadmin.middleware.OauthAdminSessionMiddleware'
)
make sure that this comes AFTER 'django.contrib.sessions.middleware.SessionMiddleware'
Step 5: Set up all the correct options (see below for available options)
If you want to test this app, please run the following Makefile
command:
make test
When the CSRF validation token doesn't match, django-admin-oauth2 will redirect back to the login url so it can retry the authorization step. Sometimes people will bookmark the oauth server with an out-of-date CSRF state string, this is better than showing them an error page.
JSONSerializer
FAQs
A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider
We found that django-admin-oauth2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.