| tiêu đề | SourceCodester Photo Share Website using PHP/MySQL V1.0 Unrestricted Upload |
|---|
| Mô tả | The file upload functionality handled by the save_upload action in ajax.php lacks adequate validation of user-supplied data. The application processes base64-encoded file data via the img[] parameter and sets the filename based on the imgName[] parameter.
An attacker can intercept the HTTP POST request and manipulate these parameters to bypass intended restrictions. By supplying a .php extension in the imgName[] parameter and injecting malicious base64-encoded PHP code (such as a webshell or phpinfo()) into the img[] parameter, the server will save the executable script into the public-facing /social/assets/img/uploads/ directory. Accessing this uploaded file directly via a web browser triggers the execution of the arbitrary PHP code. |
|---|
| Nguồn | ⚠️ https://github.com/gensnext/cve/issues/2 |
|---|
| Người dùng | w4yl (UID 60425) |
|---|
| Đệ trình | 21/06/2026 15:01 (cách đây 2 các tháng) |
|---|
| Kiểm duyệt | 07/08/2026 10:34 (2 months later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 386955 [SourceCodester Photo Share Website 1.0 ajax.php?action=save_upload img[]/imgName[] nâng cao đặc quyền] |
|---|
| điểm | 20 |
|---|