提出 #644680: SourceCodester Pet grooming management software 1.0 Unrestricted Upload情報

タイトルSourceCodester Pet grooming management software 1.0 Unrestricted Upload
説明Title: [Authenticated File Upload → Remote Code Execution] in [Pet-Grooming-Management-System] <= [v1.0] BUG Author: Kuldeep Sahu Product Information:- Vendor Homepage: https://www.sourcecodester.com/ Software Link: [https://www.sourcecodester.com/php/xxxx/pet-grooming-management-system.html] Affected Version: <= v1.0 Vulnerability Details Type: Authenticated File Upload → Remote Code Execution (RCE) Affected URL: http://localhost/petgrooming_erp/pet_grooming/admin/profile.php Vulnerable Parameter: File Upload Field (Profile Image) Vulnerable Files:[admin/profile.php] Web accessible upload directory http://localhost/petgrooming_erp/pet_grooming/assets/uploadImage/Profile/ Vulnerability Type: CWE-434 (Unrestricted Upload of File with Dangerous Type) Severity Level: CRITICAL (CVSS: 9.8) Root Cause The application fails to validate or sanitize uploaded files. Attackers can upload PHP webshells (e.g., shell.php), which are stored in a publicly accessible folder. Direct access to the file allows remote code execution. Impact Remote Code Execution on server Full compromise of web application Possible privilege escalation and lateral movement Database dump and credential theft Server takeover Proof of Concept (PoC) Step1:- Login with valid user credentials. Step2:- Navigate to Profile Page section → Upload Image Step3:- Create a single liner php webshell and save it as shell.php Step4:- Upload the wbeshell on the upload image section After uploading the shell.php file successfully, navigate back to the profile section. (Note: If the page turns blank after upload, don’t worry — this indicates that shell.php has been successfully uploaded.) Step5:- Right click over the profile image section and open image in new tab Then you can see the shell.php Step6:- Then click over the shell.php and use ?cmd=id to execute command As you can see we can successfully execute the command . Remediation To mitigate this vulnerability: Restrict allowed file types: Ensure the upload functionality only accepts specific safe formats (e.g., .png, .jpg, .jpeg). Implement server-side validation: Do not rely solely on client-side checks. Validate MIME types and file extensions on the server. Sanitize and rename uploaded files: Prevent execution of arbitrary code by renaming files on upload and storing them outside the webroot.
ソース⚠️ https://medium.com/@kuldeepsahoo877/title-authenticated-file-upload-remote-code-execution-in-pet-grooming-management-system-09be853bbcfa
ユーザー
 Kuldeep (UID 89660)
送信2025年08月30日 18:31 (1 年 ago)
モデレーション2025年09月07日 20:44 (8 days later)
ステータス重複
VulDBエントリ323039 [SourceCodester Pet Grooming Management Software 1.0 /admin/profile.php 特権昇格]
ポイント0

Interested in the pricing of exploits?

See the underground prices here!