$remote_filter) { $getfilter = (isset($altfilter))? 'http://php-ids.org/default_filter.'. $filterend:'https://svn.php-ids.org/svn/trunk/lib/IDS/default_filter.'.$filterend; $msg = 'New filter rules are available for the WPIDS: Filter Download.
We recommend that you update your filter rules as soon as possible. That guarantees best protection level combined with less false positives.'; return 0; } else { $msg = 'WPIDS filter rules are up to date!'; return 2; } }else { $msg = 'Couldn\'t contact server for latest filter rules, Please try again later.'; return 1; } } if (isset($_POST['stats']) && $_POST['stats'] == 'Search Stats') { if (function_exists("check_admin_referer")) { check_admin_referer('wp-ids-stats'); } ?>
'".$searchfor."'"; break; default: $query_err = TRUE; break; } if (isset($query_err) && $query_err === TRUE && $_POST['searchfor'] != "") { echo ("Can't run query, some Parameters where corrupt or Missing. Please retry!"); } else { $idsquery .= " ORDER BY t1.id DESC "; (ctype_digit($_POST['limit']) && $_POST['limit'] !== 0)? $idsquery .= " LIMIT 0,".$_POST['limit'] : $idsquery .= " LIMIT 0, 25"; $wpdb =& $GLOBALS['wpdb']; $result = $wpdb->get_results($idsquery, ARRAY_A); echo ""; if ($result !=NULL) { $rowNum = 0; foreach ($result as $row) { $tag = (trim($row['tag']) != "")? ereg_replace("['\"<>]", "", $row[tag]): $attackedfields[$row['type']]; $row['impact'] = ($row['impact'] == NULL)? "-" : (int) $row['impact']; echo "\n"; $rowNum++; } } else { echo ("
ID Value Tag Page IP Impact Time
".(int) $row[id_org]."". ereg_replace("['\"<>]", "", $row[value])."".$tag."". substr(ereg_replace("['\"<>]", "", $row[page]), 0, 30)."...".ereg_replace("['\"<>]", "", $row[ip]). "".$row[impact]."".ereg_replace("['\"<>]", "", $row[date])."
No entries found for your criteria!"); } } } else { ?>

WPIDS with PHPIDS v0.4.7

By Gareth Heyes, Philipp Heinze & Mario Heiderich

WPIDS utilizes the PHPIDS for protecting your blog.

This plugin checks all input parameters against a highly tested rule set against attack patterns. If PHPIDS detects some suspicious input the request will be blocked and logged to protect you and your blog from possible harm.

Any bad request is given an impact - with height depending on the severity of the detected attack patterns. This impact allows you to control how WPIDS works for you. Check out the settings below...

Attention:

Your need at least PHP version 5.1.6 or greater (your version: ), therefore it's not possible to use PHPIDS. WPIDS runs now only with a subset of features, so many attacks may remian undetected. Please consider to upgrade to the latest PHP version to benefit from all security features of that plugin.

You can grab the latest copy from:PHP.net

>Filter rules:

Options

WPIDS:

" size="20" maxlength="">

" size="3">

" size="3">

" size="3">

" size="3"> bad requests below

>

>

>

WP Lockdown:

>

>

>

Last Blocked Bad Requests:

get_results("SELECT t1.id AS id_org, `value`, `tag`, `ip`, `impact`, `date`, `page`, `type` FROM `".$prefix."sec_log` AS t1 LEFT JOIN `" .$prefix."sec_intrusions` AS t2 ON t1.ref_id = t2.id ORDER BY t1.id DESC LIMIT ".get_option("wpids-showlate"), ARRAY_A); if ($records != NULL) { $rowNum = 0; foreach ($records as $row) { $row['impact'] = ($row['impact'] == NULL)? "-" : (int) $row['impact']; $tag = (trim($row['tag']) != "")? ereg_replace("['\"<>]", "", $row['tag']): $attackfields[$row['type']]; echo "\n"; $rowNum++; } } else { echo (""); } ?>
ID Value Tag Page IP Impact Time
".(int) $row[id_org]."". ereg_replace("['\"<>]", "", $row[value])."".$tag."". substr(ereg_replace("['\"<>]", "", $row[page]), 0, 30)."...".ereg_replace("['\"<>]", "", $row[ip]). "".$row[impact]."".ereg_replace("['\"<>]", "", $row[date])."
No Intrusions where logged yet, congrats!

Legend:

Name Values: COOKIE - Bad Value within $_COOKIE Array, GET - Bad Value within $_GET Array, POST - Bad Value within $_POST Array, REQUEST - Bad Value within $_REQUEST Array, SERVER RURI - Bad Value in $_SERVER[REQUEST_URI] SERVER REF - Bad Value in $_SERVER[HTTP_REFERER]