/

CVE-2026-39169

Severity:

HIGH RISK

(7.5)

Access Control Failure (CWE-284) in SEMCMS_copy.php

CVE-2026-39169

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthorized Access and Content Manipulation

Severity:

HIGH RISK

(7.5)

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

SEMCMS 5.0 contains an access control weakness in SEMCMS_copy.php that can allow unauthorized users to access or trigger functionality intended only for authenticated or privileged users.

When this script is reachable without proper permission checks, attackers may leverage it to read, copy, or manipulate website content beyond their allowed access.

Affected context

The vulnerability occurs in SEMCMS 5.0 within the SEMCMS_copy.php script, which appears to handle content or resource copying operations.

It becomes relevant when the script is exposed via the web server and is not consistently protected by session validation, role checks, or other authorization controls.

Environments where administrative or editorial actions are mapped directly to this script without additional access control hardening are more likely to be affected, particularly if deployment defaults are left unchanged.

Exploit preconditions

  • Attack surface: HTTP(S) requests targeting SEMCMS_copy.php on a SEMCMS 5.0 site
  • Required access: Network access to the web application; may not require authentication if the script lacks proper checks
  • Trigger point: Direct invocation of SEMCMS_copy.php with parameters that cause it to copy or interact with protected resources
  • Why exploitation is possible: The script does not reliably enforce access control (e.g., missing or incomplete authentication and authorization checks), enabling actions to be performed outside of the intended permission model

Why this happens

The underlying issue is an access control failure consistent with CWE-284: Improper Access Control.

The SEMCMS_copy.php endpoint likely performs sensitive operations (such as copying content, files, or records) based on incoming request parameters without first verifying that the caller is authenticated and authorized to perform those operations.

This reflects a design pattern where functionality is exposed directly over the network and relies on implicit trust (e.g., obscurity of URLs or client-side controls) rather than explicit, server-side authorization logic bound to user identity and role.

Potential impact

  • Attackers may be able to copy or duplicate protected content or data without authorization.
  • Unauthorized users could potentially overwrite or alter existing content by misusing the copy functionality.
  • Sensitive configuration or internal resources may be exposed if the script permits copying from restricted locations.
  • Business logic and workflow integrity can be undermined, leading to content defacement or unauthorized content publication.

General mitigation guidance

Effective mitigation focuses on strengthening server-side access control around sensitive scripts and administrative operations.

Common defensive patterns include:

  • Requiring robust authentication and authorization checks for any script that modifies, copies, or manages content or files.
  • Centralizing access control logic so that all administrative endpoints, including SEMCMS_copy.php, consistently enforce roles and permissions.
  • Restricting direct web access to maintenance or administrative scripts by placing them behind an authenticated admin panel, using routing rules, or limiting access by IP or VPN where appropriate.
  • Ensuring that the copy operation validates source and destination targets against an allowed, application-controlled set of paths or records, rather than accepting arbitrary user input.
  • Applying the principle of least privilege so that only necessary roles can invoke content-copy features, and ensuring defaults are secure for new installations.

How teams detect issues like this

Detection typically combines code-level review and runtime monitoring:

  • Static analysis and review: Search for PHP scripts (including SEMCMS_copy.php) that perform file or content operations without checking session state, user roles, or authorization tokens before performing actions.
  • Access control review: Verify that all routes leading to SEMCMS_copy.php pass through an authentication layer and share a common authorization mechanism; flag any direct or bypass routes.
  • Logging and monitoring: Enable detailed logging for administrative actions such as content copying, and monitor for such actions originating from anonymous sessions or unusual IP ranges.
  • Security testing: Use automated scanners and manual penetration testing to probe for unauthenticated or low-privilege access to administrative features and verify that unauthorized requests are consistently denied.

Sources

SourceLink
gist.github.comgist.github.com/ql288470-pixel/c30caddaa3204d49d82317bb92bffa43

Frequently asked

questions

Yes. If SEMCMS_copy.php is reachable over the network and lacks proper access control, an attacker with network access to the site can attempt to exploit it via crafted HTTP requests.

Not necessarily. The weakness is described as unauthorized access, which suggests that in some configurations the script can be invoked without a valid login or with insufficient privileges.

Protect the SEMCMS_copy.php functionality behind robust server-side authentication and authorization checks, ensuring only authenticated users with appropriate roles can trigger copy operations, and validate all operation parameters against allowed targets.

Design administrative and content-management features under a unified access control framework, enforce least privilege by default, require authorization checks on every sensitive endpoint, and regularly review code and configuration for scripts that perform sensitive actions without adequate permission enforcement.

Find out what's already
exploitable in your codebase.