| शीर्षक | hasan-py Hayroo ≤latest Path Traversal |
|---|
| विवरण | The 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. |
|---|
| स्रोत | ⚠️ https://github.com/hasan-py/Hayroo/issues/51 |
|---|
| उपयोगकर्ता | xwlin_roy (UID 102282) |
|---|
| सबमिशन | 21/10/2026 09:19 AM (1 महीना पहले) |
|---|
| संयम | 19/11/2026 10:53 PM (30 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 440904 [hasan-py Hayroo तक fd0fbe763153f72bfaa04ed1e1e4a1bb6f7c61df Image Deletion products.js Product.deleteImages निर्देशिका ट्रैवर्सल] |
|---|
| अंक | 20 |
|---|