From 3f2a4dd6d4b65eef7608dec6196a67e41ba96773 Mon Sep 17 00:00:00 2001 From: Michael Herger Date: Wed, 15 Nov 2017 06:19:32 +0100 Subject: [PATCH] Encode HTML entities to prevent some XSS exploits. CVE-2017-16567 https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-16567 https://www.exploit-db.com/exploits/43122/ CVE-2017-16568 https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-16568 https://www.exploit-db.com/exploits/43123/ CVE-2017-15687 https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-15687 https://www.exploit-db.com/exploits/43024/ --- HTML/Default/home.html | 2 +- .../Favorites/HTML/EN/plugins/Favorites/index.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HTML/Default/home.html b/HTML/Default/home.html index ebea5f047a6..41ace67b376 100644 --- a/HTML/Default/home.html +++ b/HTML/Default/home.html @@ -144,7 +144,7 @@
[% END %] - [% IF dontGetString; link.key; ELSE; string; END %] + [% IF dontGetString; link.key | html; ELSE; string | html; END %] [% IF link.icon && !noIcon %]
[% END %] diff --git a/Slim/Plugin/Favorites/HTML/EN/plugins/Favorites/index.html b/Slim/Plugin/Favorites/HTML/EN/plugins/Favorites/index.html index 464a845dd69..300c8083110 100644 --- a/Slim/Plugin/Favorites/HTML/EN/plugins/Favorites/index.html +++ b/Slim/Plugin/Favorites/HTML/EN/plugins/Favorites/index.html @@ -11,7 +11,7 @@ - + [% IF useAJAX %] @@ -29,7 +29,7 @@ - + @@ -55,7 +55,7 @@

- + [% IF useAJAX %] @@ -122,7 +122,7 @@

- [% entry.title %] + [% entry.title | html %] [% END -%] [% END %] @@ -214,7 +214,7 @@

[% "PLUGIN_FAVORITES_PASTE" | string %] [ [% deleted %] ] + [%- END %]>[% "PLUGIN_FAVORITES_PASTE" | string %] [ [% deleted | html %] ] [% END %] [% IF useAJAX %][% END %]