VYPR
Unrated severityNVD Advisory· Published Dec 31, 2004· Updated Apr 16, 2026

CVE-2004-1408

CVE-2004-1408

Description

CVE-2004-1408 allows authenticated users to upload arbitrary PHP files via insufficient filename validation in the addImage method of admin.class.php in singapore Image Gallery 0.9.10.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2004-1408 allows authenticated users to upload arbitrary PHP files via insufficient filename validation in the addImage method of admin.class.php in singapore Image Gallery 0.9.10.

Vulnerability

The addImage method in admin.class.php of singapore Image Gallery Web Application version 0.9.10 does not properly validate uploaded filenames. This allows an authenticated user to upload files with arbitrary extensions, including PHP scripts, instead of only image files [1]. The vulnerability exists because the code fails to check whether the uploaded file is actually an image, relying solely on the filename extension.

Exploitation

An attacker must have a valid login to the administrative interface of the gallery. Once logged in, the attacker can use the addImage function to upload a malicious PHP file (e.g., shell.php) instead of an image. No additional privileges or special conditions are required beyond authentication [1].

Impact

Successful exploitation allows the attacker to upload and execute arbitrary PHP code on the web server. This can lead to full compromise of the web application and potentially the underlying server, depending on file permissions and server configuration. The attacker gains the privileges of the web server process [1].

Mitigation

No official fix is documented in the available references [1]. Users should upgrade to a patched version if one becomes available, or restrict access to the administrative interface to trusted users only. As a workaround, implement additional file type validation on the server side (e.g., checking MIME type or using getimagesize()).

AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.