MEDIUM 6.3

CVE-2026-14706: SQL Injection in code-projects Online Examination 1.0 Quiz Creation

A SQL injection vulnerability exists in code-projects Online Examination 1.0 affecting the quiz creation feature. An authenticated attacker can manipulate multiple input fields (name, total, right, wrong, time, tag, desc) in the /update.php?q=addquiz endpoint to inject malicious SQL commands. This allows unauthorized data access, modification, or deletion within the application's database. The vulnerability requires valid login credentials but can be exploited remotely with no user interaction.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weaknesses (CWE)
CWE-74, CWE-89
Affected products
0 configuration(s)
Published / Modified
2026-07-05 / 2026-07-06

NVD description (verbatim)

A vulnerability was identified in code-projects Online Examination 1.0. This affects an unknown part of the file /update.php?q=addquiz of the component Quiz Creation Feature. The manipulation of the argument name/total/right/wrong/time/tag/desc leads to sql injection. The attack can be initiated remotely. The exploit is publicly available and might be used.

6 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-14706 is a SQL injection flaw (CWE-89, CWE-74) in code-projects Online Examination 1.0's quiz creation functionality. The vulnerable endpoint /update.php?q=addquiz fails to properly sanitize or parameterize input across multiple parameters: name, total, right, wrong, time, tag, and desc. An authenticated attacker can craft SQL metacharacters within these fields to break out of intended query context and execute arbitrary database commands. The lack of prepared statements or input validation enables classic first-order SQL injection.

Business impact

An authenticated user—potentially a quiz administrator, instructor, or any user with quiz creation privileges—could escalate their access by extracting sensitive data from the examination database, including user credentials, exam answers, or grades. An attacker could also modify or delete quiz records, disrupting exam integrity and availability. In multi-tenant deployments, data exfiltration could expose information across multiple courses or institutions. Remediation delays increase exposure window for insider threats or compromised accounts.

Affected systems

code-projects Online Examination version 1.0 is explicitly affected. Organizations running this application should assume all instances are vulnerable unless patches or mitigations have been applied. The attack surface is limited to authenticated users with quiz creation permissions, but the severity is amplified in environments where those privileges are broadly delegated.

Exploitability

Exploit code is publicly available, lowering the barrier to active exploitation. However, two factors constrain widespread abuse: the vulnerability requires prior authentication (PR:L in the CVSS vector) and the attacker must have quiz creation privileges. This prevents unauthenticated remote takeovers but makes the risk acute for administrators, instructors, or compromised staff accounts. Attack complexity is low; standard SQL injection techniques apply.

Remediation

Apply a patch from code-projects that sanitizes and validates input to the quiz creation endpoint. Until patching is feasible, restrict quiz creation permissions to highly trusted users and implement database-level access controls to limit damage from compromised credentials. Input validation should reject or escape SQL metacharacters; parameterized queries (prepared statements) are the definitive fix. Monitor quiz creation logs for anomalous SQL syntax or unusual field values.

Patch guidance

Verify the latest security advisory from code-projects for patch availability and version numbers. Apply patches immediately upon release, prioritizing systems where quiz creation is frequently used. Test patches in a staging environment to confirm no regressions in quiz export, import, or reporting workflows before production deployment. If no vendor patch is available, consider upgrading to a newer version of the Online Examination platform or evaluating alternative solutions.

Detection guidance

Monitor application logs and database query logs for SQL injection attempts in /update.php?q=addquiz parameters. Look for URL-encoded SQL keywords (e.g., %27, --, OR 1=1) in the name, total, right, wrong, time, tag, or desc fields. Web application firewalls (WAF) should flag requests containing common SQL injection payloads. Baseline user privilege levels; alert on unexpected quiz creation activity from low-privilege accounts. Regular log reviews should correlate quiz creation with subsequent database schema queries or data exfiltration patterns.

Why prioritize this

This vulnerability merits prompt attention because exploit code is public and the attack surface—while limited to authenticated users—overlaps with instructor and administrator roles that are common targets for credential theft. The CVSS 6.3 MEDIUM score reflects the authentication requirement, but the confidentiality, integrity, and availability impacts justify swift patching before active exploitation in educational or corporate training environments. Non-inclusion in CISA's KEV catalog does not diminish urgency if you operate code-projects Online Examination.

Risk score, explained

CVSS 3.1 score of 6.3 (MEDIUM) reflects low attack complexity (AC:L) and network-reachable attack vector (AV:N), offset by the requirement for valid credentials (PR:L). The severity accounts for low impact on confidentiality, integrity, and availability (C:L/I:L/A:L)—typical for SQL injection in single-application scope (S:U) without lateral movement. Organizations with high-privilege quiz creators or lax password policies should weight this toward HIGH priority internally; those with strict access controls and recent password audits can maintain MEDIUM posture pending patches.

Frequently asked questions

Can an unauthenticated attacker exploit this vulnerability?

No. The CVSS vector includes PR:L (Privileges Required: Low), meaning the attacker must possess valid login credentials and sufficient permissions to access quiz creation. However, if an instructor or admin account is compromised via phishing or credential reuse, the vulnerability becomes trivial to abuse.

What versions of code-projects Online Examination are affected?

Version 1.0 is confirmed affected. Earlier versions may also be vulnerable. Check with code-projects for patched versions and a full vulnerability advisory that specifies which releases contain the fix.

How does this differ from a typical SQL injection in a web form?

The injection occurs in an administrative function (quiz creation) rather than user-facing features, which limits the attacker pool but increases the value of the target. Compromised instructor accounts can tamper with exam questions, answer keys, or grades—not just data theft.

Do I need to rotate database credentials if I was compromised?

Yes. If you have evidence of exploitation, change database user passwords immediately and review audit logs for unauthorized queries. Also audit quiz creation records for suspicious modifications and consider resetting grades or rerunning affected exams.

This analysis is provided for informational and remediation planning purposes. Verify all technical details, affected versions, and patch availability directly with code-projects' official security advisory. SEC.co makes no warranty regarding the completeness or accuracy of vendor information. Organizations are responsible for testing patches and validating fixes in their own environments before production deployment. CVE and CVSS data are current as of the publication date; consult official NVD records for any updates. Source: NVD (public-domain), retrieved 2026-08-13. Analysis generated by SEC.co (claude-haiku-4-5).