| 제목 | Jawher Kl node-api-postgres 2.5 Unrestricted File Upload |
|---|
| 설명 | A Critical Unrestricted File Upload vulnerability exists in the node-api-postgres application. In index.js, the POST /users/:id/profile-picture endpoint utilizes a locally instantiated multer configuration that completely omits the fileFilter and size limitations enforced elsewhere in the application. It preserves the original file extension using path.extname() and serves uploaded content statically via the /uploads directory. An attacker can bypass intended image restrictions to upload dangerous file types (such as .html or executable scripts), leading to Stored Cross-Site Scripting (XSS) or potential Remote Code Execution (RCE) depending on the server environment. |
|---|
| 원천 | ⚠️ https://hackmd.io/@YzU_KiOzT86cEbFQdBceVg/Bk56LQQYbe |
|---|
| 사용자 | yeee3642 (UID 91336) |
|---|
| 제출 | 2026. 03. 02. PM 04:16 (2 개월 ago) |
|---|
| 모더레이션 | 2026. 03. 14. PM 11:40 (12 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 351098 [JawherKl node-api-postgres 까지 2.5 Profile Picture index.js path.extname 권한 상승] |
|---|
| 포인트들 | 20 |
|---|