horizon/horizon/templates
CristianFiorentino 54ec015f72 Introduces escaping in Horizon/Orchestration
1) Escape help_text a second time to avoid bootstrap tooltip XSS issue

The "Description" parameter in a Heat template is used to populate
a help_text tooltip in the dynamically generated Heat form. Bootstrap
inserts this tooltip into the DOM using .html() which undoes any
escaping we do in Django (it should be using .text()).

This was fixed by forcing the help_text content to be escaped a second
time. The issue itself is mitigated in bootstrap.js release 2.0.3
(ours is currently 2.0.1).

2) Properly escape untrusted Heat template 'outputs'

The 'outputs' parameter in a Heat template was included in a Django
template with HTML autoescaping turned off. Malicious HTML content
could be included in a Heat template and would be rendered by Horizon
when details about a created stack were displayed.

This was fixed by not disabling autoescaping and explicitly escaping
untrusted values in any strings that are later marked "safe" to render
without further escaping.

Conflicts:
	openstack_dashboard/dashboards/project/stacks/mappings.py

Change-Id: Icd9f9d9ca77068b12227d77469773a325c840001
Closes-Bug: #1289033
Co-Authored-By: Kieran Spear <kispear@gmail.com>
2014-04-09 00:13:11 +09:00
..
auth Display a message on the login page 2013-08-30 19:54:31 +01:00
horizon Introduces escaping in Horizon/Orchestration 2014-04-09 00:13:11 +09:00
_header.html Allow translators to control the word order 2013-08-07 13:13:02 +09:00
_stylesheets.html Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
base.html Always load CSS files first 2013-06-29 12:11:25 +02:00
splash.html Fixed/enabled selenium tests. 2012-07-25 14:12:24 -07:00