Skip to content
SQL injection Advisory Beginner CVE-2020-6136

OS4Ed openSIS DownloadWindow.php SQL injection vulnerability

The down_id parameter in DownloadWindow.php is concatenated directly into a SQL query, so a crafted request can inject SQL. An authenticated attacker could use this to manipulate the database query, with limited confidentiality and integrity impact.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

Medium 6.4 View original

An exploitable SQL injection vulnerability exists in the DownloadWindow.php functionality of OS4Ed openSIS 7.3. A specially crafted HTTP request can lead to SQL injection.

Yuri Kramarz, on Cisco Talos

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 down_id request parameter is concatenated directly into a SQL query without sanitisation or parameterisation.

Impact

An authenticated attacker could read or alter limited data in the database through the injected query.

What the attacker needed

Valid authenticated session; access to the DownloadWindow.php page

The fix

The issue was fixed by the vendor after Talos confirmed the patch resolved it.

How it was found

  1. Send an authenticated GET request to DownloadWindow.php with a crafted down_id value and the filename and name parameters set.

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 SQL injection happens when a website puts user input straight into a database command instead of treating it as plain data. Here the download page takes a number from the URL and drops it into a database query, so an attacker can add extra database instructions. The attacker needs to be logged in to reach the page.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.