CVE-2017-12794
Django vulnerable to XSS on 500 pages
Record summary
EIP currently links 1 Nuclei template to CVE-2017-12794.
Description
In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for the technical 500 debug page. Given the right circumstances, this allowed a cross-site scripting attack. This vulnerability shouldn't affect most production sites since you shouldn't run with "DEBUG = True" (which makes this page accessible) in your production settings.
Exploitation context
Available material
- Nuclei templates
- 1
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
DjangoBrowse PyPI / Django | GitHub Advisory | 1.10a1 to < 1.10.8 · Fixed in 1.10.8 | affected |
| 1.11a1 to < 1.11.5 · Fixed in 1.11.5 | affected |
Nuclei templates
1ProjectDiscoveryMEDIUMDjango Debug Page - Cross-Site ScriptingCVSS 6.1
Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5 has HTML autoescaping disabled in a portion of the template for the technical 500 debug page. We detected that right circumstances (DEBUG=True) are present to allow a cross-site scripting attack.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential session hijacking, defacement, or theft of sensitive information.
Remediation
Upgrade to a patched version of Django or apply the necessary security patches provided by the Django project.
Source: ProjectDiscovery