Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ MAL-2026-6230 — django-auth-middleware-plus

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in django-auth-middleware-plus (PyPI)

Source: amazon-inspector

On import, django_auth_middleware_plus/__init__.py spawns a daemon thread that POSTs a JSON payload containing the host's hostname, username, cwd, environment variables matching key/secret/token/pass/auth/api, and the contents of ~/.env, ~/.bashrc, ~/.config,.env, and../.env to a hardcoded plaintext HTTP endpoint at http://4.210.177.128:8080/callback. The same import path reads ~/.pypirc and ~/.netrc (up to 200 bytes each) and ships them in the same payload, leaking the installer's PyPI publishing token and machine credentials to the attacker. A _persistence() routine appends an alias overriding django to pip install django-auth-middleware-plus --upgrade into ~/.bashrc, ~/.zshrc, and ~/.profile so subsequent shell sessions re-fetch and re-trigger the C2 callback. The package's METADATA falsely claims Home-page https://www.djangoproject.com/ and Author-email security@djangoproject.com to impersonate the Django Project — the package name and metadata are a typosquat lure for the genuine Django ecosystem.

Source: kam193

During import, package exfiltrates sensitive enviromental variables, configuration files and establishes persistence via entry in .bashrc and similar files.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-06-django-auth-middleware-plus

Reasons (based on the campaign):

  • dependency-confusion
  • exfiltration-credentials
  • exfiltration-env-variables
  • persistence
  • files-exfiltration

Affected software

MAL-2026-6230 is recorded against 1 package.

  • django-auth-middleware-plus

Timeline and source

Published on 19 June 2026 and last revised on 20 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

Indicators of compromise

IP addresses: 4.210.177.128
URLs: http://4.210.177.128:8080/callback

References

bad-packages.kam193.eu (Web)
pypi.org (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-19
Updated 2026-08-20
Modified 2026-06-20
Fix URL N/A

Affected Packages

Software From version Fixed in
django-auth-middleware-plus — —

Free Vulnerability Check

Is your site affected by MAL-2026-6230?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6230 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesMalicious packagesMalicious packages 2026
✓