---
id: "CVE-2026-122050"
kind: "vulnerability"
aliases: ["CVE-2026-122050"]
title: "Campcodes Sales and Inventory System 1.0: login page SQL injection lets anyone log in as admin"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "Complete Sales and Inventory System with Credit Management", "fixed": [], "affected": "1.0", "ecosystem": "vendor"}]
ecosystems: []
tags: ["auth-bypass", "campcodes", "other", "php", "self-hosted", "sql-injection"]
not_affected_if: ["login-page-not-exposed", "product-not-installed"]
published_at: "2026-11-05T00:17:23+00:00"
first_seen_at: "2026-11-05T00:31:01+00:00"
updated_at: "2026-11-05T00:33:11+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-122050", "first_seen_at": "2026-11-05T00:31:01+00:00"}, {"source": "analyst", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-122050", "first_seen_at": "2026-11-05T00:33:11+00:00", "cites": ["https://nvd.nist.gov/vuln/detail/CVE-2026-122050", "https://tracexlabs.com/releases/campcodes-complete-sales-and-inventory-system-login-sqli.html"]}]
exploit_sources: [{"type": "poc", "url": "https://tracexlabs.com/releases/campcodes-complete-sales-and-inventory-system-login-sqli.html"}]
---

# Campcodes Sales and Inventory System 1.0: login page SQL injection lets anyone log in as admin

The login handler in /ahira/login.php puts the POST field 'branch' into its SQL query without escaping (username and password are escaped). TraceX Labs reproduced in a local lab that branch=x' OR '1'='1 with a wrong password gives an admin session and access to /pages/home.php, so no credentials are needed. The researcher's CVSS 3.1 score is 8.6.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Complete Sales and Inventory System with Credit Management affected 1.0 fixed no fixed version listed

## How to check

Find out whether Campcodes Complete Sales and Inventory System with Credit Management 1.0 is installed and /ahira/login.php is reachable. In that file, look for $branch=$_POST['branch'] used directly in the login query (branch_id='$branch') without mysqli_real_escape_string or a prepared statement. Check web logs for POSTs to login.php whose branch value contains quotes or SQL keywords.

## Timeline

- 2026-11-05T00:31:01+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-122050
- 2026-11-05T00:33:11+00:00 analyst https://nvd.nist.gov/vuln/detail/CVE-2026-122050 — NVD (VulDB CNA) plus TraceX Labs write-up with PoC (lab-reproduced pre-auth auth bypass). No vendor advisory or fix found; the researcher's page said vendor not notified, so fix left unknown. Nothing marked verified (no vendor source). Workaround: cast branch to int / use prepared statements (researcher's remediation).

## Documents

- [advisory] NVD CVE-2026-122050 https://nvd.nist.gov/vuln/detail/CVE-2026-122050
- [poc] TraceX Labs: Pre-auth SQLi auth bypass in CampCodes Sales and Inventory System 1.0 https://tracexlabs.com/releases/campcodes-complete-sales-and-inventory-system-login-sqli.html

## From the sources

A vulnerability was found in Campcodes Complete Sales and Inventory System with Credit Management 1.0. This issue affects some unknown processing of the file /ahira/login.php. Performing a manipulation of the argument branch results in sql injection. The attack is possible to be carried out remotely. The exploit has been made public and could be used.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
