CVE-2016-5734

PhpMyAdmin 4.0.x-4.6.2 Remote Code Execution Vulneravility

PhpMyAdmin is a free software tool written in PHP,internded to handle the administration of MySQL over the WEB.The vulnerablility is in the preg_replace function,because the information submitted by the use can be spliced into the first parameter.

Before PHP 5.4.7,the first parameter of preg_replace could be truncated with \0 and the change search pattern to \e.It can cause remote code execution vulnerability.

Affected versions:

  • 4.0.x version before 4.0.10.16
  • 4.4.x version before 4.4.15.7
  • 4.6.x version before 4.6.3 (actually because this version requires PHP5.5+, this vulnerability cannot be reproduced)

Setup

cd vulhub/phpmyadmin/CVE-2015-5734
docker-compose up -d

After start,visit http://10.10.10.8:8080 and you will see the login page of phpMyAdmin.Log in withroot:root.

Exploit

This vulnerability requires login and the permission to write data.
POC

./cve-2016-5734.py -c 'system(id);' -u root -p root -d test http://10.10.10.8:8080/

Resuslt:
img

posted @   kalixcn  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2023-05-23 Linux启动过程
点击右上角即可分享
微信分享提示