/

CVE-2026-96272

Severity:

HIGH RISK

(7.5)

Blind SQL Injection (CWE-89) in ClipBucket Search

CVE-2026-96272

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Sensitive Data Exposure and Account Takeover

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

ClipBucket contains a blind SQL injection vulnerability in the photo search endpoint because query input can reach SQL WHERE and ORDER BY clauses without adequate sanitization. An unauthenticated attacker may use timing-based inference to extract sensitive account data, including credentials and administrator password hashes, creating a risk of account takeover.

Affected context

The vulnerability occurs in ClipBucket deployments where the photo search endpoint processes user-controlled query parameters and incorporates them into SQL statements. Risk is present when the application does not use parameterized query handling or otherwise enforce strict separation between search values, sorting expressions, and SQL syntax.

Exploit preconditions

  • Attack surface: Public photo search endpoint
  • Required access: No authentication may be required
  • Trigger point: Processing of the search query parameter in SQL WHERE or ORDER BY logic
  • Why exploitation is possible: Unsanitized input can influence database query behavior, allowing timing differences to reveal information indirectly

Why this happens

The underlying bug is the construction or execution of SQL statements using untrusted request parameters without reliable parameterization or allowlisted handling. When input is allowed to alter SQL predicates or ordering logic, attackers may influence database evaluation and infer protected data through observable responses or timing behavior. This maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').

Potential impact

  • Attackers may extract user credentials or email addresses
  • Administrator password hashes could be disclosed
  • Compromised credentials may enable account takeover
  • Database contents or application records could be exposed or altered
  • Database performance may be degraded through resource-intensive queries

General mitigation guidance

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

Common defensive patterns include:

  • Using parameterized queries or prepared statements for search values
  • Restricting ORDER BY fields and sort directions to fixed server-side allowlists
  • Applying context-appropriate input validation without relying on filtering alone
  • Limiting database accounts to the minimum required privileges
  • Avoiding detailed database errors and timing disclosures in responses
  • Separating public search functionality from sensitive account data at the authorization and data-access layers

How teams detect issues like this

Organizations can identify SQL injection risks through:

  • Static analysis rules for string concatenation or interpolation in database queries
  • Code review checks for request parameters used in WHERE, ORDER BY, or similar clauses
  • Dynamic testing that monitors response behavior and timing under malformed or unexpected input
  • Web application firewall and API policy rules for suspicious query patterns
  • Database monitoring for anomalous query shapes, latency, or access to account-related tables
  • Automated security review tools that flag unsafe query construction

Sources

SourceLink
github.comgithub.com/MacWarrior/clipbucket-v5
github.comgithub.com/MacWarrior/clipbucket-v5/blob/57b0235f2eae390f4946c042bf81c182a9f82782/upload/includes/classes/photos.class.php#L408-L413
github.comgithub.com/MacWarrior/clipbucket-v5/commit/7fd0af6f8b5826c2d6ef0976dbb1867f5c36b707
github.comgithub.com/MacWarrior/clipbucket-v5/pull/874
hackmd.iohackmd.io/@leediay/sqli-photo-seach-clipbucketv5
vulncheck.comvulncheck.com/advisories/clipbucket-v5-before-5.5.3-182-sql-injection-via-search-result-php

Frequently asked

questions

Yes. The affected search endpoint may be reachable over the network, and the issue is described as exploitable without authentication.

An attacker generally needs only the ability to submit requests to the public photo search endpoint. Database access or an existing ClipBucket account should not be assumed necessary.

Use parameterized database queries for values and strict server-side allowlists for sortable fields and directions. Avoid constructing SQL fragments directly from request data.

Combine secure database APIs, least-privilege database accounts, focused code review, automated static and dynamic testing, and monitoring for unusual query behavior.

Find out what's already
exploitable in your codebase.