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-108902 Overview
CVE-2026-108902 is a path traversal vulnerability [CWE-22] in pH7Builder (pH7 Social Dating CMS) versions before 18.5.0. The flaw resides in the picture module's deletePhoto() action within PictureCore.php. Authenticated members can submit ../ sequences in the picture_link POST parameter to escape the intended media directory. This enables deletion of arbitrary files, including other members' photos, configuration files, and cache data. Successful exploitation results in content loss and denial of service for the affected application.
Critical Impact
Any authenticated member can delete arbitrary files on the server by abusing the picture_link parameter, leading to data destruction and denial of service.
Affected Products
- pH7Builder (pH7 Social Dating CMS) versions prior to 18.5.0
- Vulnerable component: _protected/app/system/core/classes/PictureCore.php
- Related component: _protected/app/system/core/classes/VideoCore.php
Discovery Timeline
- 2026-10-11 - CVE-2026-108902 published to the National Vulnerability Database (NVD)
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-108902
Vulnerability Analysis
The vulnerability exists in the deletePhoto($iAlbumId, $sUsername, $sPictureLink) method of the PictureCore class. The method constructed a filesystem path by concatenating user-controlled values directly into $sDir without sanitization. The resulting path was then passed to file deletion operations across six image size variants. Because the picture_link and username values originated from an authenticated POST request, an attacker could inject ../ traversal sequences to redirect deletion outside the intended picture/img/<username>/<album>/ directory. A parallel defect exists in VideoCore.php affecting video and thumbnail deletion.
Root Cause
The root cause is missing input validation on filesystem path components. The pre-patch code trusted $sUsername and $sPictureLink as safe filename fragments. No normalization, basename extraction, or allow-list check prevented directory traversal metacharacters from reaching the deleteFile() calls.
Attack Vector
An authenticated member sends a crafted POST request to the picture deletion endpoint. The picture_link parameter contains relative path segments such as ../../config/config.ini. The server resolves the concatenated path and removes the targeted file. Repeated requests can erase cache directories, other users' media, or configuration files required for application operation.
// Patch excerpt - PictureCore.php deletePhoto()
public function deletePhoto($iAlbumId, $sUsername, $sPictureLink)
{
$sUsername = (string)$sUsername;
$sSafeUsername = File::getFileBasename($sUsername);
$sPictureLink = (string)$sPictureLink;
$sSafePictureLink = File::getFileBasename($sPictureLink);
$iAlbumId = (int)$iAlbumId;
if (
$sSafeUsername === '' ||
$sSafeUsername !== $sUsername ||
$sSafePictureLink === '' ||
$sSafePictureLink !== $sPictureLink ||
$iAlbumId < 1
) {
return;
}
$sDir = PH7_PATH_PUBLIC_DATA_SYS_MOD . 'picture/img/'
. $sSafeUsername . PH7_DS . $iAlbumId . PH7_DS;
// ...
}
Source: GitHub Commit 2ffa19a
The patch coerces inputs to strings, extracts the basename, and rejects any value that differs from its sanitized form. An equivalent fix is applied to VideoCore.php for $sVideoLink.
Detection Methods for CVE-2026-108902
Indicators of Compromise
- POST requests to picture or video deletion endpoints containing ../, ..\, URL-encoded %2e%2e%2f, or absolute path prefixes in the picture_link or video_link parameters.
- Unexpected deletion of files under _protected/data/, cache/, or other users' picture/img/<username>/ directories.
- Application errors referencing missing configuration files such as config.ini immediately after member activity.
- Web server access logs showing a single authenticated session issuing many sequential deletion requests.
Detection Strategies
- Deploy web application firewall rules that block traversal metacharacters in picture_link and video_link parameters.
- Enable PHP file integrity monitoring on the pH7Builder installation directory to flag unauthorized file removals.
- Correlate authenticated session IDs with high-volume DELETE or unlink() filesystem events through audit logs.
Monitoring Recommendations
- Forward web server and PHP error logs to a centralized log platform for retention and query.
- Alert on filesystem change events outside the expected per-user media directory structure.
- Baseline normal photo and video deletion rates per account, then alert on statistical deviations.
How to Mitigate CVE-2026-108902
Immediate Actions Required
- Upgrade pH7Builder to version 18.5.0 or later, which contains the fix in commit 2ffa19a.
- Audit filesystem contents to identify files unexpectedly removed from configuration, cache, and user media directories.
- Review member accounts for suspicious activity and reset credentials for accounts that triggered deletion anomalies.
- Restore any missing files from backup once the patch is deployed.
Patch Information
The fix is published in commit 2ffa19ac36d58dbaac37e1c4912be469d67ee75c in the pH7Software/pH7-Social-Dating-CMS repository. The patch applies File::getFileBasename() to $sUsername, $sPictureLink, and $sVideoLink, then rejects any value altered by basename extraction. See the VulnCheck Advisory for the full technical write-up.
Workarounds
- If immediate upgrade is not feasible, apply the upstream patch to PictureCore.php and VideoCore.php manually.
- Place a reverse proxy or WAF rule in front of the application to strip ../ sequences from POST parameters.
- Restrict filesystem permissions so that the PHP process cannot delete files outside the user media directory tree.
# Example ModSecurity rule blocking traversal in picture_link parameter
SecRule ARGS:picture_link "@rx (\.\./|\.\.\\|%2e%2e(%2f|%5c))" \
"id:1082026,phase:2,deny,status:403,msg:'CVE-2026-108902 traversal attempt in picture_link'"
SecRule ARGS:video_link "@rx (\.\./|\.\.\\|%2e%2e(%2f|%5c))" \
"id:1082027,phase:2,deny,status:403,msg:'CVE-2026-108902 traversal attempt in video_link'"
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

