wordpress漏洞上传php文件,WordPress任意文件上传漏洞

本文详细分析了WordPress中存在的一处文件上传漏洞,该漏洞允许攻击者上传包含.php的文件,通过直接请求执行恶意脚本。受影响的WordPress版本包括2.8.1到2.8.5。漏洞关键在于wp_handle_upload和wp_check_filetype函数,其中wp_check_filetype仅基于文件扩展名判断MIME类型,未进行充分的安全检查。
摘要由CSDN通过智能技术生成

WordPress是一款免费的论坛Blog系统。

WordPress中负责上传文件的代码如下:

漏洞文件:'wp-admin/includes/file.php'

Bugtraq ID:  37005

Class:  Input Validation Error

CVE:

Remote:  Yes

Local:  No

Published:  Nov 11 2009 12:00AM

Updated:  Nov 12 2009 03:56PM

Credit:  Dawid Golunski

Vulnerable:  WordPress WordPress 2.8.5

WordPress WordPress 2.8.4

WordPress WordPress 2.8.3

WordPress WordPress 2.8.2

WordPress WordPress 2.8.1

WordPress WordPress 2.8

描述:

--------------------------------------------------------------------------------

BUGTRAQ  ID: 37005

WordPress是一款免费的论坛Blog系统。

WordPress中负责上传文件的代码如下:

wp-admin/includes/file.php:

---[cut]---

line 217:

function wp_handle_upload( &$file, $overrides = false, $time = null ) {

---[cut]---

// All tests are on by default. Most can be turned off by $override[{test_name}] = \

false; $test_form = true;

$test_size = true;

// If you override this, you must provide $ext and $type!!!!

$test_type = true;

$mimes = false;

---[cut]---

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值