id: zhiyuan-file-upload

info:
  name: Zhiyuan OA Arbitrary File Upload Vulnerability
  author: gy741
  severity: critical
  description: A vulnerability in Zhiyuan OA allows remote unauthenticated attackers to upload arbitrary files to the remote server and cause execute arbitrary code to be executed.
  remediation: Apply the appropriate patch.
  reference:
    - https://www.programmersought.com/article/92658169875/
  metadata:
    max-request: 1
  tags: zhiyuan,rce,fileupload,seeyon,intrusive,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/seeyon/thirdpartyController.do.css/..;/ajax.do"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "java.lang.NullPointerException:null"

      - type: word
        words:
          - "text/html"
        part: header

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