إرسال #1045036: elunez eladmin 55fbf705956949697dbd68bf9003776609d3d029 CWE-22 | Improper Limitation of a Pathname to a Restricted Direcالمعلومات

عنوانelunez eladmin 55fbf705956949697dbd68bf9003776609d3d029 CWE-22 | Improper Limitation of a Pathname to a Restricted Direc
الوصفA path traversal vulnerability exists in eladmin's `FileUtil.upload()` method, enabling an authenticated attacker to write uploaded files to arbitrary locations on the filesystem outside the designated storage directory. The root cause is that `FileUtil.getExtensionName()` is invoked on the original, unsanitized filename (line 185) rather than the sanitized filename (line 184). When the uploaded filename ends with a trailing dot, `getExtensionName()` returns the entire original filename as the "suffix," including `../` and `/` path traversal sequences. This unsanitized suffix is concatenated into the file path (line 188), and `getCanonicalFile()` (line 191) resolves the `../` sequences, redirecting the file write to any writable directory on the server.
المصدر⚠️ https://github.com/elunez/eladmin/issues/923
المستخدم poppingsnack (UID 102221)
ارسال20/10/2026 10:16 AM (29 أيام منذ)
الاعتدال18/11/2026 06:07 PM (29 days later)
الحالةتمت الموافقة
إدخال VulDB439652 [elunez eladmin حتى 2.7 File Upload /api/localStorage FileUtil.upload اجتياز الدليل]
النقاط20

Might our Artificial Intelligence support you?

Check our Alexa App!