Skip to content
RCE Write-up Intermediate

CVE-2024-55963: Unauthenticated RCE in Default-Install of Appsmith

The default Appsmith installation includes a PostgreSQL database configured to trust any local connection without a password, and the platform allows unauthenticated user signup. An attacker can sign up, create an application, connect to this database, and execute system commands via SQL queries, achieving remote code execution as the postgres user.

Whit Taylor Follow

Published on rhinosecuritylabs.com

While reviewing the Appsmith Enterprise platform, Rhino Security Labs uncovered a series of critical vulnerabilities affecting default installations of the product. Most severe among them is CVE-2024-55963, which allows unauthenticated remote code execution due to a misconfigured PostgreSQL database included by…

Whit Taylor, on rhinosecuritylabs.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The PostgreSQL authentication configuration file (pg_hba.conf) uses 'trust' authentication, allowing any local user to connect as any PostgreSQL user without a password, and the application allows unauthenticated signup, enabling an attacker to reach the database.

Impact

An unauthenticated attacker could execute arbitrary system commands as the postgres user, leading to full compromise of the Appsmith server.

What the attacker needed

Default Appsmith installation; network access to the Appsmith instance; ability to sign up (default enabled)

The fix

The default pg_hba.conf was hardened and password-based authentication was introduced for the internal PostgreSQL instance.

How it was found

  1. Sign up for a new account on the Appsmith instance.
  2. Create a new workspace and an application within it.
  3. Configure a datasource to connect to the local PostgreSQL database.
  4. Use the datasource to execute SQL queries that run system commands.

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 write-up has not been written yet. The Original tab links to the source.

Appsmith is a tool for building internal apps. It comes with a built-in database for practice, but that database is set to let anyone on the same computer connect without a password. Also, anyone can sign up for an account. So an attacker can sign up, make an app, connect to that database, and run commands on the server. This is called remote code execution because the attacker can run their own commands on the machine.

What is RCE?

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

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.