OpenClinic GA web portal multiple SQL injection vulnerabilities in 'listImmoLabels.jsp' page
Multiple SQL injection vulnerabilities exist in the listImmoLabels.jsp page of OpenClinic GA 5.173.3 because user-supplied parameters are concatenated directly into SQL queries. An authenticated attacker could inject arbitrary SQL commands, potentially reading or modifying database contents.
Originally disclosed on Cisco Talos
A number of exploitable SQL injection vulnerabilities exists in ‘listImmoLabels.jsp’ page of OpenClinic GA 5.173.3 application. 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 user-controlled parameters directly into an SQL query string instead of using parameterised queries, so the input is interpreted as SQL code.
Impact
An authenticated attacker could read or alter data in the application's database, with limited confidentiality and integrity impact as scored by the CVSS vector.
What the attacker needed
Authenticated user account
How it was found
- Log in to the OpenClinic GA application to obtain a session.
- Send a POST request to the listImmoLabels.jsp page with the Action parameter set to find.
- Insert SQL syntax into one of the search parameters such as immoLocation, immoService, immoCode, immoBuyer, or immoComment.
- Observe that the injected SQL is executed by the database.
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 builds a database query by gluing together text from a user, so the user can sneak in extra database commands. Here, the hospital management software takes search fields from a form and pastes them straight into a database query. Someone who is logged in could change those fields to run their own database commands.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.