Skip to content
Threat Feed
high advisory

Unrestricted File Upload Vulnerability in SourceCodester Library Management System

SourceCodester Library Management System 1.0 is vulnerable to an unrestricted file upload flaw via the 'image' argument in 'admin/add_admin.php', potentially enabling remote code execution.

CVE search metadata

CVE search record: CVE-2026-108975. Severity: high. CVSS: 7.3. KEV: no. Product: Library Management System (1.0). Brief: Unrestricted File Upload Vulnerability in SourceCodester Library Management System. Brief link: https://feed.craftedsignal.io/briefs/2026-10-library-management-upload/

A security vulnerability has been identified in SourceCodester Library Management System version 1.0 that permits unrestricted file uploads. The flaw resides in the 'admin/add_admin.php' file, specifically within the handling of the 'image' argument during the 'move_uploaded_file' function execution. By manipulating this argument, an unauthenticated remote attacker can bypass file type validation to upload arbitrary files, such as malicious scripts, to the web server. This vulnerability has publicly available exploit code, increasing the likelihood of exploitation. Successful exploitation can lead to remote code execution (RCE) by accessing the uploaded file through the web application's document root, granting the attacker the ability to execute commands in the context of the web server service.

Impact

The vulnerability allows for remote code execution, which could lead to full system compromise of the underlying web server hosting the application. This poses a critical risk to data confidentiality and integrity for any organization currently running version 1.0 of the SourceCodester Library Management System.

Recommendation

  1. Identify all instances of SourceCodester Library Management System 1.0 within the environment.
  2. If the application cannot be patched or upgraded to a version where this vulnerability is remediated, restrict access to the 'admin/add_admin.php' endpoint to trusted administrative IP addresses via web server access controls.
  3. Monitor web server logs for HTTP POST requests directed at 'admin/add_admin.php' containing suspicious filenames or content-types in the 'image' parameter.
  4. Implement strict file extension filtering and mime-type verification on the server side to prevent the upload of executable scripts (e.g., .php, .php5, .phtml).

Immediate actions

Patch or restrict access to admin/add_admin.php

IT Operations 48h

Threat Hunt

Search for files created in the web root that do not match expected image extensions.

T1505.003 high high confidence hunt now

Data: File system auditing logs

Mitigations

Implement strict file type and extension validation.

immediate IT Operations

CVE-2026-108975

Detection coverage 1

Detect CVE-2026-108975 Exploitation - Unrestricted File Upload Attempt

high

Detects potential exploitation of CVE-2026-108975 by monitoring for POST requests to admin/add_admin.php involving unexpected file types.

sigma tactics: execution, initial_access techniques: T1505.003 sources: webserver

Detection queries are available on the platform. Get full rules →