OpenClinic GA web portal multiple SQL injection vulnerabilities in 'patientslist.do' page
Multiple SQL injection vulnerabilities exist in the patientslist.do page of OpenClinic GA 5.173.3, specifically in the findPersonID, findSector, and findDistrict parameters. An authenticated attacker could send crafted HTTP requests to inject SQL commands, potentially leading to data disclosure or modification.
Originally disclosed on Cisco Talos
A number of exploitable SQL injection vulnerabilities exists in ‘patientslist.do’ 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 builds SQL queries by concatenating user-supplied input directly into the query string without proper sanitisation or parameterisation.
Impact
An authenticated attacker could exploit these vulnerabilities to read or modify data in the database, potentially compromising patient information or other sensitive records.
What the attacker needed
Authenticated access to the application
How it was found
- Log in to the OpenClinic GA application.
- Send a POST request to the patientslist.do endpoint with a crafted value in the findPersonID parameter.
- Send a POST request to the patientslist.do endpoint with a crafted value in the findSector parameter.
- Send a POST request to the patientslist.do endpoint with a crafted value in the findDistrict parameter.
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 type of attack where a malicious user inserts database commands into input fields, tricking the application into running those commands. In this case, an attacker who is already logged in can manipulate certain search fields on a patient list page to execute their own database queries, which could let them read or change data they shouldn't access.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.