OS4Ed openSIS GetSchool.php SQL injection Vulnerability
The u parameter in GetSchool.php is passed straight into SQL queries without sanitisation, so a crafted request can inject SQL. An authenticated attacker could use this to read or alter data in the database.
Originally disclosed on Cisco Talos
An exploitable SQL injection vulnerability exists in the GetSchool.php functionality of OS4Ed openSIS 7.3. A specially crafted HTTP request can lead to SQL injection.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The code assigns the raw GET parameter to a variable and concatenates it directly into SQL query strings without parameterisation or escaping.
Impact
An authenticated attacker could inject SQL to read or modify database contents, though the CVSS score rates confidentiality and integrity impact as low.
What the attacker needed
A valid authenticated session; access to the GetSchool.php page
The fix
The parameter should be cast to an integer or passed through a parameterised query instead of being concatenated into SQL; the vendor provided a patch that Talos confirmed resolved the issue.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A web page takes a value from the address bar and drops it directly into a database command. Because the value is not checked, someone can add extra database instructions and change what the command does. This lets a logged-in user read or tamper with data they should not reach.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.