RUET OJ
CVE-2025-12326
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify publicly accessible RUET OJ instance
-
DeliverySend crafted POST to /process.php
-
ExploitInject SQL payload via 'un' parameter
-
ExecutionExecute arbitrary database queries
-
ImpactExfiltrate credentials or application data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | No special conditions required - the CVSS 4.0 vector (PR:N/UI:N/AC:L) confirms remote unauthenticated exploitation against the default configuration of RUET OJ instances exposed to the network. The sole limiting factors are: (1) the target must be running this specific PHP codebase with /process.php publicly reachable, and (2) the application must have a functioning backend database. The 'un' parameter in the POST body is the direct injection point. Non-public deployments (intranet-only, behind authentication proxies) would reduce but not eliminate risk depending on the attacker's network position. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms this is remotely exploitable with no authentication and no special conditions, with low confidentiality, integrity, and availability impacts. Despite these attributes suggesting broad exposure, the EPSS score of 0.02% at the 6th percentile indicates extremely low observed exploitation probability - consistent with the product's obscure, academic-project nature. A public exploit submission exists on VulDB (https://vuldb.com/?submit.674322), which is a real escalating signal, but no CISA KEV listing confirms active exploitation. The primary real-world risk is limited to any institution that has deployed this specific codebase publicly. The absence of vendor response to disclosure means no official patch is forthcoming, which elevates urgency for the narrow set of affected operators. |
| Exploit ScenarioDerived | An external attacker with no credentials sends a crafted HTTP POST request to the publicly accessible /process.php endpoint, embedding SQL injection payloads in the 'un' parameter (e.g., UNION-based or blind boolean payloads). Because the application passes this input directly into a SQL query without sanitization, the attacker can enumerate database tables, extract user credentials or submission data, or modify records. A public exploit submission on VulDB confirms the viability of this attack path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 25, 2026
SQL injection in RUET OJ's /process.php POST request handler allows remote unauthenticated attackers to manipulate the 'un' parameter to interact with the underlying database. The affected codebase, maintained by shawon100 on GitHub, uses no formal versioning - all commits up to 18fa45b0a669fa1098a0b8fc629cf6856369d9a5 are affected. A public exploit has been disclosed via VulDB, though the EPSS score of 0.02% (6th percentile) reflects the product's extremely limited deployment footprint; no active exploitation is confirmed.
RemediationAI
No vendor-released patch has been identified at time of analysis - the vendor was notified but did not respond. Operators of this platform should immediately restrict public network access to /process.php by blocking the endpoint at the web server or firewall level; note this may disable affected functionality. Alternatively, parameterized queries or prepared statements should be implemented in the /process.php POST handler to sanitize the 'un' input - this is a code-level fix requiring developer intervention. A Web Application Firewall (WAF) rule targeting SQL metacharacters in POST body parameters can serve as a compensating control but is bypassable with encoding evasion. Given the product's academic context, the most pragmatic control is to take the application offline or restrict access to authenticated and trusted network segments only. Advisory references are at https://vuldb.com/?ctiid.330103.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
RUET OJ is a PHP-based Online Judge platform developed for Rajshahi University of Engineering & Technology, identified in the CPE as cpe:2.3:a:shawonruet:ruet_oj:*:*:*:*:*:*:*:*. The vulnerability resides in the /process.php endpoint, which processes POST request data without adequate sanitization of the 'un' parameter before constructing SQL queries. The root cause is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, i.e., Injection), the parent class that encompasses SQL injection (CWE-89). Because the application does not use a versioning scheme, there is no clean version boundary - the entire codebase as of the referenced commit is considered vulnerable.
Know when Ruet Oj gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-accessible POST endpoint, no authentication per CVSS 4.0 PR:N; SQL injection yields limited data read/write but no direct availability impact.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability was found in shawon100 RUET OJ up to 18fa45b0a669fa1098a0b8fc629cf6856369d9a5. This vulnerability affects unknown code of the file /process.php of the component POST Request Handler. The manipulation of the argument un results in sql injection. The attack can be launched remotely. The exploit has been made public and could be used. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The vendor was contacted early about this disclosure but did not respond in any way.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
SQL injection in shawon100 RUET OJ through the ID parameter of /details.php allows authenticated remote attackers to man
SQL injection in RUET OJ via the Name parameter in /contestproblem.php allows authenticated remote attackers to execute
SQL injection in RUET OJ /description.php endpoint allows authenticated remote attackers to manipulate the ID parameter
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB