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.
Originally disclosed on Cisco Talos
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.
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
- Send a POST request to the popup.jsp endpoint with Page=statistics/quickFile.jsp and the required parameters.
- Include a valid session cookie to authenticate.
- Set the PatientUID parameter to a SQL injection payload.
- 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.