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.02473
    epss-percentile: 0.82924
    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: 4a0a00473045022100a1660994d61e4d94e57ba11a4227c1a9ed95fab0b0b8bb71344c57c4a5cbb41f02206850cc2ed59347beb5fa9a1054546f953acba51847d1e50ab6d84ce796307b03:922c64590222798bb761d5b6d8e72950