Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108904 Overview
CVE-2026-108904 is an information disclosure vulnerability in pH7Builder (pH7 Social Dating CMS) versions before 18.5.0. The UserController::users() and user() API endpoints return unfiltered database rows to API clients. Attackers possessing a valid private API key can retrieve bcrypt password hashes, non-expiring hashValidation reset tokens, and TOTP (Time-based One-Time Password) secrets. This exposure enables account takeover and bypass of two-factor authentication. The flaw maps to [CWE-522: Insufficiently Protected Credentials].
Critical Impact
Authenticated API clients can harvest password hashes, password reset tokens, and 2FA secrets for every member, enabling full account takeover across the platform.
Affected Products
- pH7Builder (pH7 Social Dating CMS) versions prior to 18.5.0
- UserController.php API module in _protected/app/system/modules/api/controllers/
- Deployments exposing the member API with issued private API keys
Discovery Timeline
- 2026-10-11 - CVE-2026-108904 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108904
Vulnerability Analysis
The pH7 Social Dating CMS exposes a REST API for member data retrieval. The UserController::users() and UserController::user() methods in the API module query the member database and return the full result rows directly to the API response. No field whitelisting or credential filtering is applied before serialization.
As a result, API responses include sensitive fields that should never leave the server. These fields include bcrypt-hashed passwords, the hashValidation column used for password reset flows, and the TOTP shared secret backing two-factor authentication. Because hashValidation tokens do not expire, an attacker who captures one can trigger password reset at any time.
An attacker with a valid private API key can enumerate every member, extract credentials, and either crack the bcrypt hashes offline or submit the reset tokens to seize accounts without cracking anything. The TOTP secret allows the attacker to generate valid second-factor codes, nullifying 2FA protection.
Root Cause
The controller methods return the raw model result ($this->set($aValidData) or equivalent) to the REST responder without stripping credential fields. The underlying issue is a missing output filter on sensitive database columns before API serialization.
Attack Vector
Exploitation requires a valid issued API key (low-privileged authenticated access) and network reachability to the API endpoint. The attacker invokes the member listing or single-user endpoint and parses the returned JSON for the password, hashValidation, and TOTP secret fields.
// Vendor patch - _protected/app/system/modules/api/controllers/UserController.php
];
$iUserId = $this->oUserModel->add(escape($aValidData, true));
- unset($aValidData['password']);
$aValidData['profile_id'] = $iUserId;
$this->oRest->response($this->set($aValidData));
Source: GitHub Commit 52a59da — the fix restores and extends credential filtering before the REST response is emitted.
Detection Methods for CVE-2026-108904
Indicators of Compromise
- API responses from /api/user or /api/users containing password, hashValidation, or TOTP secret fields in JSON payloads.
- Unusual bulk enumeration of member IDs through the API by a single API key within a short time window.
- Password reset completions originating from IP addresses that never issued the corresponding reset request.
- Successful 2FA validations occurring from new geolocations immediately after high-volume API reads.
Detection Strategies
- Inspect outbound API response bodies at the web server or reverse proxy layer for the string literals hashValidation, password, or known TOTP field names.
- Correlate API key usage with request volume to identify enumeration patterns against the member endpoints.
- Monitor the UserController.php file hash and version string to confirm pH7Builder is running 18.5.0 or later.
Monitoring Recommendations
- Enable verbose access logging on API routes handled by UserController and retain logs for forensic review.
- Alert on repeated 200 OK responses to /api/users from the same API key exceeding a defined baseline.
- Review authentication logs for password resets and 2FA enrollments that lack a corresponding user-initiated request.
How to Mitigate CVE-2026-108904
Immediate Actions Required
- Upgrade pH7Builder to version 18.5.0 or later, which filters credential fields before API serialization.
- Rotate all issued private API keys and audit which third parties hold them.
- Force a password reset for all members and invalidate existing hashValidation tokens stored in the database.
- Re-enroll TOTP secrets for every account that previously enabled two-factor authentication.
Patch Information
The fix is delivered in pH7Builder 18.5.0 via commit 52a59da. The patch filters API credentials in UserController.php and Api.trait.php so that password, hashValidation, and TOTP fields are stripped before the REST responder returns data. See the VulnCheck Advisory on pH7Builder for the full vendor advisory.
Workarounds
- Disable the member API module entirely if the API is not required for production use.
- Restrict API access with network-level allowlists so only trusted integrations can reach UserController endpoints.
- Deploy a reverse proxy filter that strips password, hashValidation, and TOTP secret keys from JSON responses until the patch can be applied.
- Revoke all private API keys and reissue them only to clients with a documented business need.
# Example reverse-proxy response filter (nginx with lua)
header_filter_by_lua_block {
ngx.header.content_length = nil
}
body_filter_by_lua_block {
local chunk = ngx.arg[1]
if chunk then
chunk = chunk:gsub('"password"%s*:%s*"[^"]*"', '"password":""')
chunk = chunk:gsub('"hashValidation"%s*:%s*"[^"]*"', '"hashValidation":""')
ngx.arg[1] = chunk
end
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

