id: wanhuoa-officeserverservlet-file-upload

info:
  name: Wanhu OA OfficeServerServlet - Arbitrary File Upload
  author: SleepingBag945
  severity: critical
  description: Wanhu OA officeserverservlet file upload vulnerability
  reference:
    - https://github.com/onMey/WH/blob/main/poc.py
    - http://wiki.peiqi.tech/wiki/oa/万户OA/万户OA%20OfficeServer.jsp%20任意文件上传漏洞.html
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="万户网络-ezOFFICE"
  tags: wanhu,oa,officeserver,fileupload,intrusive

http:
  - method: GET
    path:
      - "{{BaseURL}}/defaultroot/officeserverservlet"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "DBSTEP V3.0"
          - "Post"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100a9735d6c2de45ddec8b5001556f21d96d21ee7b38e683791053c921c2bef6b5b022100ff09ba274d965fc40683ffb5b098994460eda5bdeceaa0cdc27efcf626f8d033:922c64590222798bb761d5b6d8e72950