Soumettre #778277: z-9527 admin ≤ commit 72aaf2d Path Traversal: '../filedir'information

Titrez-9527 admin ≤ commit 72aaf2d Path Traversal: '../filedir'
DescriptionAn unrestricted file upload vulnerability exists in Z-9527 Admin ≤ commit 72aaf2d at the /upload endpoint, where the fileType query parameter is concatenated into the target filesystem path without validation or canonicalization, and the optional isImg check can be bypassed. As a result, authenticated attackers can write arbitrary files to the server filesystem. Mitigations include mapping fileType to a server-side whitelist of directories, canonicalizing and verifying that resolved paths are inside a fixed upload root, rejecting directory-traversal or absolute-path inputs, generating safe server-side filenames, validating content by magic bytes and size, storing uploads outside the webroot, and running the service with least privilege.
La source⚠️ https://github.com/CC-T-454455/Vulnerabilities/tree/master/z9527-admin/vulnerability-9
Utilisateur
 Anonymous User
Soumission12/03/2026 03:21 (il y a 7 mois)
Modérer27/03/2026 14:48 (15 days later)
StatutAccepté
Entrée VulDB353886 [z-9527 admin isImg Check /server/utils/upload.js uploadFile fileType directory traversal]
Points20

Do you need the next level of professionalism?

Upgrade your account now!