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

OS4Ed openSIS login SQL injection vulnerability

The login form of openSIS 7.3 fails to sanitise the USERNAME parameter before using it in a SQL query, allowing an unauthenticated attacker to inject SQL commands. This could let an attacker bypass authentication or extract data from the database.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An exploitable SQL injection vulnerability exists in the login 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 application concatenates the raw USERNAME parameter directly into a SQL query without sanitisation or parameterisation.

Impact

An unauthenticated attacker could execute arbitrary SQL commands, potentially bypassing authentication or accessing sensitive data.

What the attacker needed

None

The fix

The vendor provided a patch that was confirmed to resolve the issue.

How it was found

  1. Send a POST request to /opensis/index.php with a crafted USERNAME parameter containing SQL injection.
  2. Include any value for PASSWORD and the log parameter to reach the vulnerable query.

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.

SQL injection is when a program puts user input directly into a database command without cleaning it first. Here, the username field is inserted into a database query, so an attacker can type special characters that change the query's meaning. This might let them log in without a password or read private data.

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.