Skip to main content

Online Student Result System CVE-2025-12257

MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2025-10-27 cna@vuldb.com
5.5
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-exposed Online Student Result System instance
  2. Delivery
    Send crafted HTTP GET to /view_result.php with injected id parameter
  3. Exploit
    Bypass SQL query boundary via unsanitized input
  4. Execution
    Enumerate database tables and records
  5. Impact
    Exfiltrate student result 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

The target must be running SourceCodester Online Student Result System 1.0 with the /view_result.php endpoint reachable over a network. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms no authentication, no special configuration, and no user interaction are required - exploitation targets the application's default state. No special conditions apply: exploitation succeeds against any standard deployment of this version. The primary real-world limiting factor is product footprint: this is an educational/demo PHP application, so exploitation in practice is constrained to environments where this specific codebase has been deployed on internet-accessible infrastructure - typically academic institutions or developers who have used it as a learning scaffold.

Impact

The CVSS 4.0 base vector (AV:N/AC:L/AT:N/PR:N/UI:N) presents worst-case attack surface conditions: network-reachable, low complexity, no authentication, no user interaction. This would be alarming in a widely-deployed product. However, all three impact dimensions are rated Low (VC:L/VI:L/VA:L) with no subsequent-system impact (SC:N/SI:N/SA:N), capping the blast radius at partial database exposure. EPSS at 0.03% (8th percentile) confirms very low observed exploitation probability. The E:P supplemental modifier confirms a public exploit exists, which elevates theoretical opportunistic risk. No CISA KEV listing. SSVC signals: exploitation is possible (POC public) but the product's obscure footprint (educational demo, not enterprise software) drastically limits real-world attack surface. The overall priority is low outside institutions running this specific demo codebase on internet-accessible infrastructure.

Exploit ScenarioDerived

An unauthenticated remote attacker sends a crafted HTTP GET request such as /view_result.php?id=1' OR '1'='1 to a publicly accessible Online Student Result System 1.0 instance. Because the id value is interpolated unsanitized into a SQL query, the injected payload alters query logic, enabling enumeration of the database including student records and potentially credential tables. A public proof-of-concept demonstrating this technique is referenced at https://github.com/Cloverhyl/CVE/issues/2.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 25, 2026

SQL injection in SourceCodester Online Student Result System 1.0 exposes remote unauthenticated attackers a direct path to manipulate backend database queries via the unsanitized id parameter in /view_result.php. Successful exploitation can yield unauthorized access to student result records, partial data modification, and limited availability disruption. A public proof-of-concept exploit exists (referenced via GitHub), though EPSS at 0.03% (8th percentile) signals negligible observed exploitation activity, consistent with the product's narrow educational/demo deployment footprint rather than any technical barrier to exploitation.

RemediationAI

No vendor-released patch has been identified at time of analysis for Online Student Result System 1.0. Given that SourceCodester publishes educational demo code rather than maintained commercial software, a formal patch release is unlikely. Developers who have deployed this codebase should replace dynamic SQL string concatenation in /view_result.php with parameterized queries (PDO prepared statements in PHP) and apply strict integer validation on the id parameter - these are targeted, low-side-effect fixes. As immediate compensating controls: restrict access to the application to authenticated or internal-only users via HTTP basic auth or IP allowlisting at the web server level; deploy a WAF rule filtering SQL metacharacters on the /view_result.php?id= endpoint (note: WAF bypass is possible with obfuscated payloads, so this is a temporary measure only); or take the application offline if it is not actively needed, since it is a demo codebase not intended for production exposure. See VulDB at https://vuldb.com/?id.329928 for additional context.

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

The affected product is a PHP-based web application identified by CPE cpe:2.3:a:oretnom23:online_student_result_system:1.0:*:*:*:*:*:*:*, authored by oretnom23 and distributed through SourceCodester as an open-source academic demo. The root cause is CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - Injection), specifically classic SQL injection: the id parameter passed to /view_result.php is interpolated directly into a SQL query without sanitization or parameterization. This allows an attacker to alter query logic, escape intended data boundaries, and interact with the underlying database layer. The PHP stack and lack of prepared statements are the enabling technical conditions.

Know when Online Student Result System 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

Vendor (vuldb) PRIMARY 5.5 MEDIUM
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
vuln.today AI 7.3 HIGH

Network-accessible unauthenticated SQLi with no scope change; Low C/I/A reflects partial database read-write access in a small demo application.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A security vulnerability has been detected in SourceCodester Online Student Result System 1.0. This issue affects some unknown processing of the file /view_result.php. The manipulation of the argument ID leads to sql injection. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Rare
educational demo PHP app, minimal production deployment footprint
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:oretnom23:online_student_result_system:1.0:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy