Soumettre #1049321: hasan-py Hayroo ≤latest Path Traversalinformation

Titrehasan-py Hayroo ≤latest Path Traversal
DescriptionThe POST /api/product/edit-product endpoint in products.js is vulnerable to path traversal due to insufficient validation of file paths in the Product.deleteImages() method. When mode is set to "string", user-controlled image values are concatenated directly with the base upload directory without sanitization or validation to ensure that the resulting path remains within the intended directory. These paths are subsequently passed to fs.unlink(), allowing an attacker who can control the relevant input to manipulate file paths and potentially delete arbitrary files accessible to the application's operating system user. This could result in data loss, application disruption, or the deletion of security-sensitive files, depending on the application's filesystem permissions.
La source⚠️ https://github.com/hasan-py/Hayroo/issues/51
Utilisateur
 xwlin_roy (UID 102282)
Soumission21/10/2026 09:19 (il y a 1 mois)
Modérer19/11/2026 22:53 (30 days later)
StatutAccepté
Entrée VulDB440904 [hasan-py Hayroo Image Deletion products.js Product.deleteImages directory traversal]
Points20

Do you need the next level of professionalism?

Upgrade your account now!