Skip to content
RCE Advisory Intermediate CVE-2020-27227

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.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

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.

Yuri Kramarz, on Cisco Talos

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

  1. Send a request to the vulnerable endpoint with a random session cookie.
  2. Receive a new session cookie and a redirect to 'relogin'.
  3. Use the new session cookie in a second request with the command payload.
  4. 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.

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.