Appsmith Patches Full-Read SSRF Vulnerabilities Reported by CloudSEK
Appsmith's REST Client and Elasticsearch integrations allowed authenticated users to make requests to internal addresses, bypassing a blacklist via HTTP redirects. An attacker could reach cloud metadata services and obtain temporary AWS/GCP credentials.
Published on cloudsek.com
Authors : Sparsh Kulshrestha and Shashank Bharthwal Editor : Deepanjli Paulraj
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
Likely the SSRF protection relied on a blacklist of hostnames and did not block HTTP redirects, so a permitted host could redirect to a blocked internal address.
Impact
An attacker could obtain temporary cloud credentials from AWS or GCP metadata, potentially leading to further access to the cloud environment.
What the attacker needed
A free account on the Appsmith instance; ability to create a REST or Elasticsearch query; a server to host a redirect
The fix
The issue was fixed in Appsmith versions 1.7.12 and above by disallowing redirects in the HTTP client.
How it was found
- Log in to Appsmith and use the REST Client to create a query.
- Set the API URL to a controlled server that redirects to the cloud metadata endpoint.
- Run the query and receive the metadata response.
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.
Server-side request forgery (SSRF) is when a server is tricked into making a request to a location the attacker cannot reach directly, such as internal cloud metadata. Here, the app tried to block known metadata addresses, but an attacker could use a redirect to bypass the block and read sensitive cloud credentials.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.