From c9dc13d3c966abc11203bfb18404d8a40e795b3b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 6 Jul 2016 12:16:33 +0100 Subject: [PATCH] Fix two XSS vulnerabilities. The title in the OpenGraph header was not being properly escaped, and the hide pins/all pins links were using single quotes which were able to be broken out of. Also remove the single quotes around rss_feed_uri, though this is not a vulnerability as its contents were sanitised (postcode or co-ords). --- templates/web/base/alert/_list.html | 2 +- templates/web/base/around/display_location.html | 8 ++++---- templates/web/base/header_opengraph.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/web/base/alert/_list.html b/templates/web/base/alert/_list.html index 65bba2fed84..f94ce84f83d 100644 --- a/templates/web/base/alert/_list.html +++ b/templates/web/base/alert/_list.html @@ -20,7 +20,7 @@

- [% loc( + [% loc(
[% loc('(a default distance which covers roughly 200,000 people)') %]

diff --git a/templates/web/base/around/display_location.html b/templates/web/base/around/display_location.html index 7c54f4b7614..b2e578d3f7f 100755 --- a/templates/web/base/around/display_location.html +++ b/templates/web/base/around/display_location.html @@ -55,16 +55,16 @@ diff --git a/templates/web/base/header_opengraph.html b/templates/web/base/header_opengraph.html index f728d083fa1..6b2c8ff46ae 100644 --- a/templates/web/base/header_opengraph.html +++ b/templates/web/base/header_opengraph.html @@ -1,5 +1,5 @@ - + [% IF c.req.uri.path == '/' %][% END %]