diff --git a/classes/calendarview.class.php b/classes/calendarview.class.php index a3536869..ecce5a4b 100644 --- a/classes/calendarview.class.php +++ b/classes/calendarview.class.php @@ -6,6 +6,10 @@ class CalendarView { private static $Events; public static function render_title($Month, $Year) { + if (!is_numeric($Month) || !is_numeric($Year)) { + error(404); + } + $NextMonth = $Month % 12 == 0 ? 1 : $Month + 1; $PreviousMonth = $Month == 1 ? 12 : $Month - 1; $NextYear = $Year; diff --git a/classes/sitehistory.class.php b/classes/sitehistory.class.php index f696d360..e55b39c4 100644 --- a/classes/sitehistory.class.php +++ b/classes/sitehistory.class.php @@ -244,7 +244,7 @@ public static function update_event($ID, $Date, $Title, $Link, $Category, $SubCa } public static function delete_event($ID) { - if (empty($ID)) { + if (!is_numeric($ID)) { error(404); } $QueryID = G::$DB->get_query_id(); diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index e03fd119..90e8ed8c 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,8 @@ CHANGE LOG +2015-12-24 by newman +Fix several XSS, SQLi, and misc vulnerabilities + 2015-12-20 by newman Add password age to user profiles diff --git a/sections/tools/data/ocelot_info.php b/sections/tools/data/ocelot_info.php index f3b1c666..93852670 100644 --- a/sections/tools/data/ocelot_info.php +++ b/sections/tools/data/ocelot_info.php @@ -30,7 +30,7 @@

Tracker info