/

CVE-2026-103766

Severity:

HIGH RISK

(7.2)

SQL Injection (CWE-89) in ClipBucket Ads Manager Panel

CVE-2026-103766

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Database Confidentiality, Integrity, and Availability

Severity:

HIGH RISK

(7.2)

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

ClipBucket contains a SQL injection vulnerability in the advertisement management workflow, where an authenticated user with ad manager access can influence the delete parameter used by deletion queries. Depending on database permissions and application behavior, this may allow time-based data extraction or unauthorized modification and deletion of records.

Affected context

The vulnerability occurs in ClipBucket deployments that expose the administrative advertisement management functionality and grant users the ad_manager_access permission. Risk is present when the delete parameter reaches AdsManager::DeleteAd queries without reliable parameterization and without sufficient server-side authorization and input controls.

Exploit preconditions

  • Attack surface: Administrative advertisement management endpoint at admin_area/ads_manager.php
  • Required access: An authenticated account with ad_manager_access permission
  • Trigger point: Processing of the delete parameter during advertisement deletion
  • Why exploitation is possible: User-controlled input is incorporated into database queries without adequate separation from SQL syntax

Why this happens

The underlying defect is an unsafe SQL query construction pattern in which externally controlled request data is concatenated into database statements. This allows input to alter query logic rather than being treated solely as a value, mapping to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection). Time-based responses may also provide an indirect channel for inferring database contents.

Potential impact

  • Attackers may extract sensitive database information, including user credentials or email addresses
  • Unauthorized users may modify database records
  • Arbitrary records may be deleted
  • Application data integrity and administrative workflows could be disrupted
  • Exposed database privileges could increase the impact across related application components

General mitigation guidance

Mitigation generally focuses on ensuring that all database operations treat request values as data rather than executable SQL.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database interactions
  • Avoid string concatenation when constructing SQL statements
  • Validate identifiers and operation targets against server-side allowlists
  • Enforce authorization checks at the operation and record level, not only at the interface
  • Apply least-privilege permissions to the application database account
  • Limit database error details and timing side channels exposed to users
  • Preserve audit logs for administrative record deletion and modification

How teams detect issues like this

Detection can include:

  • Static analysis rules identifying SQL strings built through concatenation with request parameters
  • Code review checks for direct use of $_GET, $_POST, or equivalent request values in database calls
  • Tests that verify prepared statements and parameter binding across administrative workflows
  • Runtime monitoring for anomalous deletion requests, repeated database errors, and unusual response-time patterns
  • Policy enforcement requiring parameterized database access and record-level authorization
  • Neutral automated code review or software composition tools that flag injection-prone data flows

Sources

SourceLink
github.comgithub.com/MacWarrior/clipbucket-v5
github.comgithub.com/MacWarrior/clipbucket-v5/blob/f15cef1a2431786c31ffd79e81f55d6eeca4ebc0/upload/includes/classes/ads.class.php#L102-L110
github.comgithub.com/MacWarrior/clipbucket-v5/pull/925
hackmd.iohackmd.io/@leediay/sqli-via-delete-ads-clipbucketv5
vulncheck.comvulncheck.com/advisories/clipbucket-v5-through-5.5.3-197-sql-injection-via-ads-manager-php-delete-parameter

Frequently asked

questions

It may be exploitable through the exposed administrative web endpoint when the attacker can send requests to the ClipBucket installation and has the required authenticated permission.

Yes. The described attack surface requires authentication and the ad_manager_access permission, although the security impact also depends on how permissions are assigned and enforced.

Replace dynamically concatenated SQL with parameterized queries or prepared statements, while validating operation targets and enforcing authorization on each affected record.

Use secure database-access abstractions, apply least-privilege database permissions, test administrative endpoints for injection, and enforce code-review policies that prohibit mixing untrusted input with SQL syntax.

Find out what's already
exploitable in your codebase.