OpenClinic GA unauthenticated command injection vulnerability
An unauthenticated command injection vulnerability in OpenClinic GA allows an attacker to execute arbitrary commands on the server by sending a crafted request to a specific endpoint. This could lead to database exfiltration, credential theft, and full server compromise.
Originally disclosed on Cisco Talos
An exploitable unatuhenticated command injection exists in the OpenClinic GA 5.173.3. Specially crafted web requests can cause commands to be executed on the server.
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
Likely the application passes user-supplied input directly to a system shell without proper sanitisation or validation.
Impact
An attacker could execute arbitrary commands on the server, potentially leading to database exfiltration, credential theft, and full system compromise.
What the attacker needed
Network access to the server; two requests with session cookie handling
How it was found
- Send a request to the vulnerable endpoint with a random session cookie.
- Receive a new session cookie and a redirect to 'relogin'.
- Use the new session cookie in a second request with the command payload.
- The server executes the command with NT System privileges.
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.
This is a command injection bug. It means the application takes input from a web request and runs it as a system command without checking it. An attacker can send a request that makes the server run their own commands, like reading files or taking control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.