Bug 1486451 (CVE-2017-12794)

Summary: CVE-2017-12794 python-django: Possible XSS in traceback section of technical 500 debug page
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: apevec, bcourt, bkearney, cbillett, chrisw, gmollett, hvyas, jakub.dornak, jal233, jjoyce, jmatthew, jschluet, kbasil, lhh, lpeer, markmc, mburns, mhroncok, michel, mmccune, mrike, mrunge, ohadlevy, rbryant, rhos-maint, sclewis, security-response-team, sgallagh, sisharma, slinaber, smooge, srevivo, tdecacqu, tomckay, tsanders
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:22:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1488764    
Bug Blocks:    
Attachments:
Description Flags
Patch for Django master
none
Patch for Django 1.11.x
none
Patch for Django 1.10.x none

Description Pedro Sampaio 2017-08-29 19:11:00 UTC
In older versions, 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.

Affected versions
=================

* Django master development branch
* Django 1.11
* Django 1.10

Django 1.8 is unaffected and Django 1.9 reached end-of-life in April 2017.

Comment 1 Pedro Sampaio 2017-08-29 19:15:27 UTC
Created attachment 1319747 [details]
Patch for Django master

Comment 2 Pedro Sampaio 2017-08-29 19:16:08 UTC
Created attachment 1319748 [details]
Patch for Django 1.11.x

Comment 3 Pedro Sampaio 2017-08-29 19:16:38 UTC
Created attachment 1319749 [details]
Patch for Django 1.10.x

Comment 4 Andrej Nemec 2017-09-06 07:55:28 UTC
External References:

https://www.djangoproject.com/weblog/2017/sep/05/security-releases/

Comment 5 Andrej Nemec 2017-09-06 07:56:05 UTC
Created python-django tracking bugs for this issue:

Affects: fedora-all [bug 1488764]