Skip to content
SQL injection Advisory Intermediate CVE-2020-27226

OpenClinic GA web portal SQL injection vulnerability in 'statistics/quickFile.jsp' page

The PatientUID parameter in quickFile.jsp is vulnerable to authenticated SQL injection because user input is concatenated into a SQL query without proper sanitisation. An attacker with valid credentials could execute arbitrary SQL commands, potentially leading to data disclosure or modification.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

Medium 6.4 View original

An exploitable SQL injection vulnerability exists in ‘quickFile.jsp’ page of OpenClinic GA 5.173.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 PatientUID parameter directly into a SQL query without using parameterised queries or input validation.

Impact

An authenticated attacker could execute arbitrary SQL queries, potentially leading to unauthorised data access or modification.

What the attacker needed

Valid user account; network access to the application

How it was found

  1. Send a POST request to the popup.jsp endpoint with Page=statistics/quickFile.jsp and the required parameters.
  2. Include a valid session cookie to authenticate.
  3. Set the PatientUID parameter to a SQL injection payload.
  4. Submit the request to trigger the injection.

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 a flaw where a program builds a database query by gluing together text that includes user input. If the input is not cleaned, an attacker can insert extra database commands. Here, a logged-in user could send a crafted request to run their own SQL, which might let them read or change patient 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.