ph7software/ph7builder is vulnerable to Path Traversal
81
CVE Score
High
Path Traversal
Before the fix, PictureCore::deletePhoto concatenated the request's picture_link into the album directory path and passed the resulting paths to File::deleteFile, so anyone who could reach the admin module's photo-moderation delete action could supply ../ sequences in picture_link and erase arbitrary files the web server could remove. The database delete in PictureCoreModel::deletePhoto had to succeed first, so the link had to reference an existing picture row for the target user. The fix compares username and link against File::getFileBasename and returns without deleting unless they equal their basenames and album_id is at least 1.
Upgrade the ph7software/ph7builder package to 18.5.0 or later.
You are affected if you are using a version that falls within the vulnerable range and expose the admin module's photo-moderation delete action to clients who can reach it and let picture_link reach PictureCore::deletePhoto.
1.3.5 - 18.4.1
Fixed in 18.5.0ph7software/ph7builder is vulnerable to Path Traversal in versions 1.3.5 - 18.4.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.