CVE-2019-13177

9.8 CRITICAL

📋 TL;DR

This vulnerability in django-rest-registration allows remote attackers to spoof user verification processes by exploiting a static signature string instead of secure dynamic signatures. It affects all applications using django-rest-registration for user registration/verification before version 0.5.0. Attackers can bypass email verification and potentially take over user accounts.

💻 Affected Systems

Products:
  • django-rest-registration (Django REST Registration library)
Versions: All versions before 0.5.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects any Django application using django-rest-registration for user registration/verification features.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete account takeover of any user, including administrators, leading to full system compromise and data exfiltration.

🟠

Likely Case

Unauthorized account creation and takeover of regular user accounts, enabling privilege escalation and data access.

🟢

If Mitigated

Limited impact with proper monitoring and additional authentication layers, but verification bypass remains possible.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

The vulnerability is in the verification mechanism itself, making exploitation straightforward once understood.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.5.0

Vendor Advisory: https://github.com/apragacz/django-rest-registration/security/advisories/GHSA-p3w6-jcg4-52xh

Restart Required: No

Instructions:

1. Update django-rest-registration to version 0.5.0 or later using pip: pip install django-rest-registration>=0.5.0
2. Verify the update with: pip show django-rest-registration
3. No Django server restart required for library updates, but restart if using cached modules.

🔧 Temporary Workarounds

Disable User Registration

all

Temporarily disable user registration endpoints until patched

# In Django settings or URL configuration, remove/comment registration URLs

🧯 If You Can't Patch

  • Implement additional verification layers (2FA, manual approval)
  • Monitor registration logs for suspicious patterns and implement rate limiting

🔍 How to Verify

Check if Vulnerable:

Check installed version: pip show django-rest-registration | grep Version

Check Version:

pip show django-rest-registration | grep Version

Verify Fix Applied:

Confirm version is 0.5.0 or higher: pip show django-rest-registration | grep Version

📡 Detection & Monitoring

Log Indicators:

  • Unusual verification patterns, multiple verification attempts from single IP, successful verifications without corresponding emails

Network Indicators:

  • HTTP requests to verification endpoints with manipulated signatures

SIEM Query:

source="django" AND (url_path="/verify-registration/" OR url_path="/verify-email/") AND status=200

🔗 References

📤 Share & Export