CVE-2010-3082:
Cross-site scripting in django
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.60339%
CWE
Published
7/23/2018
Updated
9/16/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Django | pip | >= 1.2, < 1.2.2 | 1.2.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unescaped insertion of CSRF token values from cookies into HTML outputs. The patch diffs show: 1) In csrf.py's add_csrf_field, the token value was concatenated directly into HTML until escape() was added. 2) In defaulttags.py's CSRF token template tag, similar unescaped insertion occurred. Both locations handled user-controllable cookie data (csrfmiddlewaretoken) without proper sanitization, enabling XSS payload injection. The test case changes (using '<1>' token) confirm the exploit scenario required escaping these values.