OpenClinic GA Web portal SQL injection vulnerability in 'manageServiceStocks.jsp' page
An authenticated SQL injection vulnerability exists in the 'FindServiceUid' parameter of the 'manageServiceStocks.jsp' page in OpenClinic GA 5.173.3. An attacker with valid credentials could inject SQL commands to manipulate database queries.
Originally disclosed on Cisco Talos
An exploitable SQL injection vulnerability exists in ‘manageServiceStocks.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 builds an SQL query by directly concatenating user input from the 'FindServiceUid' parameter into the query string without proper sanitisation or parameterisation.
Impact
An authenticated attacker could exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized data access or modification, though the CVSS score indicates limited confidentiality and integrity impact.
What the attacker needed
Valid user account; network access to the web portal
How it was found
- Log in to the OpenClinic GA web portal with valid credentials.
- Send a POST request to the 'manageServiceStocks.jsp' page with the 'Action' parameter set to 'find'.
- Include a malicious SQL payload in the 'FindServiceUid' parameter.
- The application executes the injected SQL query, potentially returning or modifying data.
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 can insert database commands into a web form or URL. In this case, a logged-in user can send a specially crafted request to a hospital management system's stock management page, and the system will run unintended database queries. This could allow the attacker to read or modify data they shouldn't have access to.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.