From 596a3da8a700644ac3126aca2c1d95207ffc8e1d Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 26 Aug 2010 16:03:16 +0000 Subject: [PATCH] upcoming advisory, prepare --- docs/NEWS | 2 ++ include/functions_config.inc.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index 027e8871..22d3300f 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -71,6 +71,8 @@ Version 1.6 () Version 1.5.4 (August 26th, 2010) ------------------------------------------------------------------------ + * Fix XSS in backend, thanks to High-Tech Bridge SA #HTB22595 + * Fix PHP 5.3.2 parse error in a file, thanks to fyremoon * Fix SQL query statement for deleting a category, which on some diff --git a/include/functions_config.inc.php b/include/functions_config.inc.php index 64094b42..52f1caab 100644 --- a/include/functions_config.inc.php +++ b/include/functions_config.inc.php @@ -846,6 +846,10 @@ function serendipity_iframe_create($mode, &$entry) { return true; } + if (!serendipity_checkFormToken()) { + return false; + } + $_SESSION['save_entry'] = $entry; $_SESSION['save_entry_POST'] = $serendipity['POST'];