漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation
Vulnerability Description
HAX CMS helps manage microsite universe with PHP or NodeJs backends. Prior to version 26.0.0, the `hmacBase64()` function in the HAXcms Node.js backend contains two critical cryptographic implementation errors that together allow any unauthenticated attacker to extract the system’s private signing key and forge arbitrary admin-level JSON Web Tokens (JWTs) allowing them to get full admin access with a single HTTP request. First, the function passes the literal string "0" as the HMAC signing key instead of the key parameter, making every HAXcms instance compute identical HMACs for the same input. Then, after computing the HMAC, the function concatenates the real key parameter which is "this.privateKey + this.salt", the system’s master signing secret is directly onto the output. The combined buffer is base64-encoded and returned as the token. Every base64url token produced has the same structure: 32 bytes HMAC keyed with "0" and N bytes of `privateKey+salt`. An attacker base64-decodes any token, discards the first 32 bytes, and reads the private key directly. The `/system/api/connectionSettings` endpoint is unauthenticated and returns multiple tokens generated by this function. A single GET request to this endpoint exposes the private key. The PHP backend implements this function correctly with the actual key and returns only the hash. The PHP version produces 44-character tokens whereas the broken Node.js version produces 139+ character tokens. Version 26.0.0 fixes the issue.
CVSS Information
N/A
Vulnerability Type
信息暴露
Vulnerability Title
HAXCMS 安全漏洞
Vulnerability Description
HAXCMS是HAX The Web开源的一个内容管理系统。 HAX CMS Node.js 26.0.0之前版本存在安全漏洞,该漏洞源于hmacBase64函数存在两个加密实现错误,可能导致未认证攻击者提取系统私钥并伪造任意管理员级JWT令牌,通过单个HTTP请求获取完全管理员访问权限。
CVSS Information
N/A
Vulnerability Type
N/A