Submit #765591: SourceCodester Modern Image Gallery App v1.0 Path Traversalinfo

TitleSourceCodester Modern Image Gallery App v1.0 Path Traversal
DescriptionPath traversal (CWE-22) in SourceCodester Modern Image Gallery App v1.0 delete.php allows unauthenticated attackers to delete arbitrary files. The filename POST param is used directly: 'images/' . $_POST['filename'] . unlink() without validation. PoC: curl -X POST http://localhost/delete.php -d "id=1" -d "filename=../config.php" deletes config.php ( HTTP 500) , full DoS. CVSS: 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H). Details in linked Gist.
Source⚠️ https://gist.github.com/hackusman/e618b915514ed24b9333c72152bb7218
User
 hackus_man (UID 95738)
Submission02/22/2026 17:05 (2 months ago)
Moderation03/07/2026 09:37 (13 days later)
StatusAccepted
VulDB entry349641 [SourceCodester Modern Image Gallery App 1.0 /delete.php filename path traversal]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!