Campcodes School File Management System, SQL Injection, CVE-2025-14209 (Medium)

Listen to this Post

The vulnerability exists in the `/update_query.php` file of Campcodes School File Management System 1.0. It is caused by the insecure handling of the `stud_id` parameter, which is directly incorporated into an SQL query without proper sanitization or the use of prepared statements. An attacker can initiate a remote attack by sending a specially crafted HTTP request to this endpoint. By injecting malicious SQL code fragments into the `stud_id` parameter, the attacker can manipulate the intended database query. This allows for the execution of arbitrary SQL commands on the underlying database. Publicly available exploit code demonstrates that this flaw can be used to read, modify, or delete data within the database. The attack requires no authentication (PR:N) and no user interaction (UI:N), making it straightforward to exploit. Successful exploitation leads to a loss of confidentiality (VC:L), integrity (VI:L), and availability (VA:L) at a low level for the vulnerable component, though the scope (SC:N/SI:N/SA:N) is confined to it.
Platform: Campcodes SFM
Version: 1.0
Vulnerability: SQL Injection
Severity: Medium
Date: 2025-12-07

Prediction: 2025-12-28

What Undercode Say:

curl -X POST "http://<target>/update_query.php" -d "stud_id=1' OR '1'='1"

How Exploit:

Identify the target system running the vulnerable version.

Craft an HTTP POST request to the `/update_query.php` endpoint.
Inject SQL payloads via the `stud_id` parameter (e.g., 1' UNION SELECT username, password FROM users--).

Extract sensitive database information from the application’s response.

Protection from this CVE

Use prepared statements with parameterized queries.

Implement strict input validation and sanitization.

Apply the principle of least privilege to database accounts.

Update to a patched version if released.

Impact

Unauthorized access to sensitive student/staff data.

Potential for data manipulation or deletion.

Full compromise of the database backend.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: nvd.nist.gov
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top