Severity:

HIGH RISK

(7.3)

SQL Injection in Lost and Found Thing Management

CVE-2026-6163

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Data Exposure and Manipulation via SQL Injection

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

Lost and Found Thing Management 1.0 contains a SQL injection vulnerability in /catageory.php where the cat parameter is incorporated into database queries without proper validation or parameterization.

An attacker can remotely manipulate this parameter to interfere with SQL queries, potentially accessing or modifying application data and affecting the integrity of the lost-and-found records.

Affected context

This vulnerability occurs in the web-facing component of the Lost and Found Thing Management 1.0 application, specifically in the /catageory.php endpoint.

The issue is present when incoming HTTP requests can supply the cat parameter, and the application uses this value directly in SQL statements.

Deployments where the application is reachable over a network and backed by a relational database are affected, particularly when no additional query filtering or database-level restrictions are in place.

Exploit preconditions

  • Attack surface: Public or internal web interface exposing /catageory.php.
  • Required access: Network access to the application; no special privileges are necessarily required beyond the ability to send crafted HTTP requests.
  • Trigger point: Submission of a specially crafted cat parameter that is processed by /catageory.php and passed into a SQL query.
  • Why exploitation is possible: The application builds SQL statements by concatenating or interpolating the cat parameter without using parameterized queries or sufficient input validation, allowing attacker-controlled syntax to alter the intended query structure.

Why this happens

The root cause is the direct use of user-controlled input in database queries without proper neutralization or parameter binding.

In /catageory.php, the cat parameter appears to be incorporated into SQL statements as part of the query string, rather than as a bound parameter.

This pattern maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command, and is closely related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component, where attacker-controlled data influences commands sent to a downstream database.

The absence of strict input validation and the reliance on string concatenation enables injection of additional SQL operators, clauses, or statements.

Potential impact

  • Unauthorized reading of database records, including potentially sensitive user or item information.
  • Unauthorized modification or deletion of lost-and-found entries or related data.
  • Bypassing application logic or authentication checks implemented at the application level but backed by SQL queries.
  • Extraction of database schema information to aid further attacks.
  • In some configurations, execution of stacked queries that could alter database configuration or create new privileged accounts.

General mitigation guidance

Effective mitigation focuses on eliminating direct concatenation of untrusted input into SQL statements and tightening data handling boundaries:

  • Use parameterized queries or prepared statements for all database access paths that incorporate user input, ensuring user data is always treated as data, not SQL syntax.
  • Apply server-side validation and canonicalization of parameters such as cat, constraining them to expected formats (e.g., numeric IDs or a fixed set of known category values).
  • Centralize database access logic to reduce ad hoc query construction and to consistently enforce safe query patterns.
  • Limit database privileges for the application account to the minimal set required, reducing the blast radius if an injection occurs.
  • Consider query-building abstractions or ORM layers that default to parameterization and discourage manual string concatenation.

How teams detect issues like this

Detection typically involves both code-level and runtime practices:

  • Use static application security testing (SAST) or linters to flag dynamic SQL construction that includes request parameters such as cat, especially in files like /catageory.php.
  • During code review, look for patterns where $_GET, $_POST, or similar request variables are interpolated directly into SQL query strings.
  • Implement security testing (DAST) that exercises endpoints with crafted SQL injection payloads and monitors for anomalous responses or error messages.
  • Establish secure coding guidelines and CI/CD checks that prohibit raw string-based SQL where user input is present, and require the use of prepared statements.

Sources

SourceLink
code-projects.orgcode-projects.org/
github.comgithub.com/lanPwa/CVE/issues/2
vuldb.comvuldb.com/submit/797088
vuldb.comvuldb.com/vuln/357051
vuldb.comvuldb.com/vuln/357051/cti

Frequently asked

questions

Yes. The vulnerability can be exploited remotely by sending crafted HTTP requests to the /catageory.php endpoint, provided the application is network-accessible.

Public descriptions do not require authentication for exploitation. If /catageory.php is accessible without login, an unauthenticated attacker could exploit it; otherwise, the required access level matches whatever is needed to reach that endpoint.

Refactor all affected queries to use parameterized statements or prepared queries, and ensure the cat parameter is validated against expected formats or whitelisted values before it reaches the database layer.

Adopt a development standard that forbids constructing SQL via string concatenation with user input, enforce use of parameterized access layers, add automated checks in the build pipeline, and train developers to validate and constrain all externally supplied data before use.

Find out what's already
exploitable in your codebase.