/

CVE-2026-78245

Severity:

HIGH RISK

(7.3)

Unrestricted File Upload (CWE-434) in Online Pharmacy System

CVE-2026-78245

Deferred

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-284, CWE-434

Impact:

Unauthorized File Placement and Potential Code Execution

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A vulnerability in the User Registration component of itsourcecode Online Pharmacy System 1.0 allows remotely supplied registration photo data to be uploaded without adequate restriction. If an attacker can reach the registration endpoint and the uploaded content is later treated as executable or otherwise trusted, the issue may enable unauthorized file placement and potentially code execution.

Affected context

The issue occurs in the User Registration functionality, specifically where the photo input is processed by all_users/register.php through move_uploaded_file. Risk depends on whether the endpoint is publicly reachable, whether uploaded content is sufficiently validated, where files are stored, and whether the destination permits uploaded files to be executed or accessed by other application components.

Exploit preconditions

  • Attack surface: Remote User Registration endpoint
  • Required access: Ability to submit registration data and an accompanying photo upload
  • Trigger point: Server-side handling of the uploaded file in all_users/register.php
  • Why exploitation is possible: File type, content, filename, destination, or execution controls may not adequately restrict uploaded data, allowing attacker-controlled content to be stored by the application

Why this happens

The underlying bug is an unrestricted file-upload pattern mapped to CWE-434: Unrestricted Upload of File with Dangerous Type. The application accepts attacker-controlled upload content and moves it into a server-managed location without establishing a sufficiently trusted relationship between the declared upload purpose, the file's actual content, its permitted name, and its safe storage behavior. The associated CWE-284: Improper Access Control reflects insufficient authorization or control over who can place potentially dangerous files in that location.

Potential impact

  • An attacker may store unauthorized files on the application server.
  • Uploaded content could be interpreted by the server or another component as executable code.
  • The application may experience defacement, data exposure, or service disruption.
  • Compromised application files could enable further unauthorized access or lateral movement.

General mitigation guidance

Mitigation generally focuses on making uploads narrowly scoped and non-executable by default.

Common defensive patterns include:

  • Accepting only the file formats required by the business function and validating content independently of client-supplied metadata.
  • Generating server-side filenames rather than trusting user-provided names or paths.
  • Storing uploads outside executable web roots or in an isolated object-storage location with private access by default.
  • Enforcing size, extension, content-signature, and authorization checks before persistence.
  • Serving uploaded content with restrictive response headers and disabling script execution in upload directories.
  • Applying least-privilege permissions to the web process and upload destination.
  • Requiring authentication or additional authorization where public registration does not need unrestricted upload capability.

How teams detect issues like this

Detection approaches can include:

  • Static analysis rules for file-upload APIs used without allowlists, content validation, filename normalization, or safe storage controls.
  • Code review checks for direct use of request-derived filenames, extensions, paths, and MIME types.
  • Repository policies requiring uploads to be stored outside executable directories.
  • Web-application monitoring for unusual upload extensions, repeated registration uploads, anomalous file sizes, and requests targeting newly created files.
  • File-integrity monitoring for unexpected changes in web-accessible directories.
  • Automated security review tools can help identify upload handlers that lack authorization and post-upload execution restrictions.

Sources

SourceLink
github.comgithub.com/microwaveabi/vul/issues/47
itsourcecode.comitsourcecode.com/
vuldb.comvuldb.com/cve/CVE-2026-78245
vuldb.comvuldb.com/submit/886161
vuldb.comvuldb.com/vuln/394595
vuldb.comvuldb.com/vuln/394595/cti

Frequently asked

questions

Yes, the vulnerable functionality is exposed through the User Registration component, so exploitation may be possible remotely when the registration endpoint is reachable and accepts attacker-controlled uploads.

Not necessarily. If registration and its photo-upload field are publicly available, an attacker may only need network access to the endpoint. Deployment-specific access controls can change this scope.

Use a strict allowlist of required image types, verify file content server-side, generate safe filenames, store files outside executable web roots, and disable execution in upload locations.

Treat every upload as untrusted, enforce authorization and validation before storage, apply least-privilege filesystem permissions, and monitor upload destinations for unexpected files.

Find out what's already
exploitable in your codebase.