horizon/horizon
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
..
browsers PEP8 E126 has been resolved 2013-09-17 20:48:09 +09:00
conf divides "import" statement in a url.py 2013-09-17 15:50:04 +09:00
forms Implement required field indicator 2013-09-03 10:47:02 -06:00
locale Import translations for Havana 2013.2.2 udpate 2014-02-03 03:58:19 +09:00
management PEP8 E121 has been resolved 2013-09-05 14:38:58 +08:00
static Change how scrollShift is calculated 2013-12-21 21:26:08 +09:00
tables Add contextual markers to BatchAction messages 2013-11-25 01:57:23 +09:00
tabs Enable H302 check 2013-08-22 17:39:09 +04:00
templates Introduces escaping in Horizon/Orchestration 2014-04-09 00:13:11 +09:00
templatetags show limit summary in GB 2013-09-23 13:18:45 +02:00
test Fix inappropriate logouts on load-balanced Horizon 2014-01-30 10:30:06 +11:00
utils Logging user out after self password change 2013-11-27 11:22:16 +01:00
workflows Bad workflow-steps check: has_required_fields 2014-01-22 10:15:51 +01:00
__init__.py Enable H302 check 2013-08-22 17:39:09 +04:00
base.py Enable H302 check 2013-08-22 17:39:09 +04:00
context_processors.py Unifies Horizon conf. 2012-11-20 14:29:05 -08:00
decorators.py Enable H302 check 2013-08-22 17:39:09 +04:00
exceptions.py Enable H302 check 2013-08-22 17:39:09 +04:00
loaders.py Enable H302 check 2013-08-22 17:39:09 +04:00
messages.py Enable H302 check 2013-08-22 17:39:09 +04:00
middleware.py Fix inappropriate logouts on load-balanced Horizon 2014-01-30 10:30:06 +11:00
models.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
site_urls.py Enable H302 check 2013-08-22 17:39:09 +04:00
version.py Replace OpenStack LLC with OpenStack Foundation 2013-09-20 04:19:42 +08:00
views.py Enable H201: do not write "except:" 2013-08-13 17:21:32 +10:00