horizon/openstack_dashboard
CristianFiorentino 1b0106e280 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.

Change-Id: Icd9f9d9ca77068b12227d77469773a325c840001
Closes-Bug: #1289033
Co-Authored-By: Kieran Spear <kispear@gmail.com>
2014-04-09 00:04:39 +09:00
..
api Merge "Enable settings/change password on keystone v3" 2014-03-31 07:42:34 +00:00
conf Remove the update default quotas feature 2014-03-26 12:19:21 -03:00
dashboards Introduces escaping in Horizon/Orchestration 2014-04-09 00:04:39 +09:00
enabled Plugin-based panel group configuration 2014-03-29 01:05:03 +09:00
local Disables the clear text password UI by default 2014-03-17 15:50:02 +02:00
locale Import translations from Transifex for Icehouse 2014-04-07 16:32:34 +09:00
openstack Fix misspellings in horizon 2014-02-08 09:10:03 +08:00
static Fixes description field extension 2014-03-06 17:05:22 -07:00
templates Implementing accordion navigation 2014-02-26 14:03:36 -07:00
test Improve Host Aggregates handle method. 2014-04-04 09:24:00 +01:00
usage Refactor CSV generation code to utils 2014-03-03 10:05:23 -07:00
utils Plugin-based panel group configuration 2014-03-29 01:05:03 +09:00
wsgi Updated the django.wsgi file for devstack. 2012-02-29 01:37:37 -08:00
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
context_processors.py Implementing accordion navigation 2014-02-26 14:03:36 -07:00
exceptions.py Update troveclient to 1.0.0 2013-11-25 08:25:32 -08:00
hooks.py Updated from global requirements 2013-08-08 13:16:35 -03:00
policy.py Policy check needs to check for None in target 2014-02-05 12:11:33 -07:00
settings.py Import translations from Transifex for Icehouse 2014-04-07 16:32:34 +09:00
urls.py Remove #noqa from most common imports and add them to import_exceptions 2014-01-07 12:26:35 +01:00
views.py Don't ignore the HORIZON_CONFIG['user_home'] setting 2014-04-04 09:50:02 +02:00