Skip to main content
Vulnerability Database/CVE-2026-111872

CVE-2026-111872: Online-Examination-System SQLi Vulnerability

CVE-2026-111872 is a SQL injection flaw in itsmeravitejak Online-Examination-System affecting multiple database functions. Attackers can exploit this remotely to manipulate database queries. This post covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111872 Overview

CVE-2026-111872 is a SQL injection vulnerability in the itsmeravitejak Online-Examination-System project up to commit e6208e630b14657999bbfe4c9912302d2a1e2449. The flaw affects multiple functions in include/database.php and results.php, including MySQLDB::valid, MySQLDB::getresults, MySQLDB::noresults, MySQLDB::getExams, MySQLDB::latestExamID, and MySQLDB::getreport. Attackers can manipulate the id, user, or topic arguments to inject arbitrary SQL. The attack can be executed remotely without authentication, and a working exploit has been publicly disclosed. The project uses a rolling release model, so no fixed version identifier is published.

Critical Impact

Unauthenticated remote attackers can inject SQL statements through the id, user, or topic parameters, enabling unauthorized read or modification of exam data stored in the backend database.

Affected Products

  • itsmeravitejak Online-Examination-System (rolling release)
  • Code up to commit e6208e630b14657999bbfe4c9912302d2a1e2449
  • Files results.php and include/database.php

Discovery Timeline

  • 2026-10-18 - CVE-2026-111872 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-111872

Vulnerability Analysis

The vulnerability is categorized under [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component). It appears in the MySQLDB class, which centralizes database access for the examination system. Six methods — valid, getresults, noresults, getExams, latestExamID, and getreport — concatenate user-supplied values directly into SQL statements. Attackers reach these methods through unauthenticated HTTP requests that drive the exam workflow, including result lookups and report generation. Successful injection exposes exam records, user credentials, and scoring data stored in the backing MySQL instance.

Root Cause

The root cause is the absence of parameterized queries or input sanitization inside the MySQLDB methods. The id, user, and topic arguments flow from request parameters into dynamically built SQL strings. Because the project follows a rolling release model and the maintainer has not responded to the issue report, no official patch commit exists.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker crafts an HTTP request to results.php or an endpoint that invokes a vulnerable MySQLDB method and supplies a malicious payload in the id, user, or topic parameter. Standard SQL injection techniques including UNION-based extraction, boolean blind inference, and time-based blind inference apply. The EPSS score at publication is 0.263%.

See the GitHub Issue #6 Discussion and the VulDB CVE-2026-111872 Entry for additional technical details.

Detection Methods for CVE-2026-111872

Indicators of Compromise

  • HTTP requests to results.php containing SQL metacharacters such as ', ", --, /*, UNION, or SLEEP( in the id, user, or topic parameters.
  • MySQL error log entries referencing syntax errors on queries originating from the MySQLDB class methods.
  • Unexpected spikes in query execution time correlated with requests to exam result endpoints, indicating time-based blind injection attempts.

Detection Strategies

  • Deploy web application firewall rules that identify SQL injection payloads targeting the id, user, and topic parameters on examination endpoints.
  • Instrument the PHP application to log the full SQL string executed by MySQLDB methods and alert on queries containing stacked statements or boolean tautologies.
  • Baseline normal query patterns against the examination database and flag anomalous SELECT, UNION, or INFORMATION_SCHEMA access.

Monitoring Recommendations

  • Forward web server access logs and MySQL general query logs to a centralized logging platform for correlation.
  • Monitor outbound connections from the web host for signs of data exfiltration following suspicious request patterns.
  • Review authentication logs for exam user accounts to identify credential reuse that may follow database disclosure.

How to Mitigate CVE-2026-111872

Immediate Actions Required

  • Remove public internet exposure of the Online-Examination-System instance until a code-level fix is applied.
  • Audit the MySQLDB class and rewrite the six affected methods to use prepared statements with bound parameters.
  • Rotate any database credentials and exam user passwords that may have been exposed through prior exploitation.

Patch Information

No vendor patch is available. The project maintainer was notified through the GitHub Issue #6 Discussion but has not responded. Operators must apply code changes manually by refactoring the affected methods in include/database.php to use mysqli_prepare or PDO prepared statements. Review the full project at the GitHub Online Examination System repository.

Workarounds

  • Place the application behind a web application firewall configured with OWASP CRS rules for SQL injection on parameters id, user, and topic.
  • Enforce input validation at the web server layer, rejecting non-numeric values for id and restricting user and topic to allow-listed character sets.
  • Restrict the database account used by the application to least privilege, removing FILE, DROP, and administrative rights.
bash
# Example ModSecurity rule to block SQLi payloads on vulnerable parameters
SecRule ARGS:id|ARGS:user|ARGS:topic "@detectSQLi" \
    "id:1009112,phase:2,deny,status:403,\
    msg:'CVE-2026-111872 SQLi attempt on Online-Examination-System',\
    tag:'CWE-74'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.