Empty commit

This commit is contained in:
Git 2015-12-25 08:00:29 +00:00
parent 52828f71e0
commit a4c3ae1184
8 changed files with 19 additions and 8 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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

View File

@ -30,7 +30,7 @@
<h2>Tracker info</h2>
</div>
<div class="linkbox">
<a href="?action=<?=$_GET['action']?>" class="brackets" />Main stats</a>
<a href="?action=<?=$_REQUEST['action']?>" class="brackets" />Main stats</a>
</div>
<div class="sidebar">
<div class="box box2">
@ -76,7 +76,7 @@
<?
} elseif (isset($_GET['userid'])) {
?>
User <?=$_GET['userid']?> doesn't exist
User <?=display_str($_GET['userid'])?> doesn't exist
<?
} else {
?>

View File

@ -1,5 +1,5 @@
<?
if (!check_perms('site_debug')) {
if (!check_perms('site_debug') || !check_perms('admin_clear_cache')) {
error(403);
}
if (isset($_POST['global_flush'])) {

View File

@ -17,7 +17,7 @@
<?
if (empty($_GET['list'])) {
?>
<a href="?action=<?=$_GET['action']?>&amp;list=1" class="brackets">Show donor list</a>
<a href="?action=<?=$_REQUEST['action']?>&amp;list=1" class="brackets">Show donor list</a>
<?
} else {
$BitcoinAddresses = DonationsBitcoin::get_received();

View File

@ -9,10 +9,10 @@
foreach ($_POST['item'] as $Position => $Item) {
$Position = db_string($Position);
$Item = db_string($Item);
$DB->query('
$DB->query("
UPDATE `do_not_upload`
SET `Sequence` = ' . $Position . '
WHERE `id` = '. $Item);
SET `Sequence` = '" . $Position . "'
WHERE `id` = '" . $Item . "'");
}
} elseif ($_POST['submit'] == 'Delete') { //Delete

View File

@ -6,6 +6,10 @@
$UserID = $LoggedUser['ID'];
$AuthKey = $LoggedUser['AuthKey'];
} else {
if (strpos($_REQUEST['torrent_pass'], '_') !== false) {
error(404);
}
$UserInfo = $Cache->get_value('user_'.$_REQUEST['torrent_pass']);
if (!is_array($UserInfo)) {
$DB->query("