# GHSA-QHFJ-G87X-M39W: Developer-to-Admin Account Takeover via Internal Redis Session Hijacking

- Database: GitHub
- Severity: CVSS 8.6 (High)
- Published: 2026-08-12
- Modified: 2026-08-12

## Affected versions

- com.appsmith:server (Maven): through 2.1

## Description

## Summary

Any Appsmith developer can achieve full account takeover of any user (including instance administrators) by creating a Redis datasource pointing to Appsmith's own internal Redis instance at `localhost:6379`. The internal Redis stores all user sessions (Spring Security sessions) without authentication. A developer can enumerate all active sessions via `KEYS`, read session data including user email via `HGETALL`, and then use the session ID as the `SESSION` cookie to impersonate any logged-in user.

This is a **privilege escalation: developer → instance admin → full platform control**.

The root cause is twofold: (1) in the default single-container Docker deployment (`appsmith/appsmith-ce`) prior to v2.0, the internal Redis had no authentication configured, and (2) the datasource creation flow did not block connections to localhost/internal services, despite having SSRF protections for HTTP connections via `WebClientUtils`.

This was verified via HTTP against Appsmith CE v1.99: 46 active sessions read, with user emails extracted from session data.

## Affected Products

- **Package:** `com.appsmith` (Maven)
- **Repository:** https://github.com/appsmithorg/appsmith
- **Affected versions:** `< 2.2` (the container-managed embedded Redis was hardened in v2.0; datasource-level blocking landed in v2.2 — see Resolution)
- **Deployment scope:** Default Docker single-container deployments (`appsmith/appsmith-ce`), and any deployment whose Redis is reachable without authentication. Deployments backed by an external Redis that enforces authentication are not exposed to root cause (1).

## Weakness

- CWE-918 — Server-Side Request Forgery (TCP-level SSRF to internal Redis)
- CWE-384 — Session Fixation
- CWE-269 — Improper Privilege Management

## Technical Detail

**Step 1:** Developer creates a Redis datasource pointing to Appsmith's internal Redis.

The Redis plugin accepts arbitrary `host:port`. Appsmith's internal Redis runs on `localhost:6379` inside the Docker container. In deployments where that Redis has no authentication, no host denylist was applied to JDBC/TCP connections — the `WebClientUtils` SSRF protections only cover HTTP connections, so TCP-based plugins bypass them entirely.

**Step 2:** Developer enumerates all active sessions via the Appsmith action system.

```
KEYS spring:session:sessions:*
```

Returns ALL active user sessions. In our test: **46 sessions enumerated**.

**Step 3:** Developer reads session data to identify a target user.

```
HGETALL spring:session:sessions:<session-id>
```

The session data contains `userId`, `email`, `name`, `workspaceIds`, `authorities`.

**Step 4:** Developer sets the stolen session ID as their `SESSION` cookie and is authenticated as the target user on all subsequent requests. The session ID alone is the full credential — there is no IP binding, user-agent, or fingerprint check, so a copied cookie works unchanged.

## Proof of Concept

1. Start Appsmith CE via Docker (an affected version, `< 2.0`):
   ```bash
   docker compose up -d
   ```

2. Sign up as a developer user (open signup enabled by default).

3. Create a Redis datasource — Host: `localhost`, Port: `6379`, no authentication.

4. Create and execute an action:
   ```
   KEYS spring:session:sessions:*
   ```
   **Result:** Returns all active session IDs (we observed 46).

5. Create and execute another action against a returned session ID:
   ```
   HGETALL spring:session:sessions:<session-id>
   ```
   **Result:** Returns session data including user email.

6. Find an admin session and set your browser cookie:
   ```
   SESSION=<admin-session-id>
   ```

7. Navigate to Appsmith — you are now logged in as the admin. Verify via the admin-only `/api/v1/admin/env`, which returns full instance configuration including environment variables.

## Impact

**Critical impact** on affected deployments. Any developer can:

- Hijack any user's session, including instance administrators
- Access all datasource credentials across all workspaces (database passwords, API keys, OAuth tokens)
- Modify instance configuration (disable security features, change admin emails)
- Read/modify/delete all applications and data across the entire Appsmith instance
- Create backdoor admin accounts for persistent access

In multi-tenant deployments, a developer in one workspace can compromise all other workspaces. Since open signup is enabled by default, any internet user can create a developer account and execute this attack, making it effectively unauthenticated for internet-facing instances.

## Resolution

The issue is addressed by a layered set of fixes across the application and the Helm chart:

1. **Embedded Redis authentication (fixed in v2.0).** The single-container Docker deployment now generates a password for the embedded Redis instance at startup if one is not already set, so the internal Redis is no longer reachable without authentication.

2. **Datasource-level hardening (fixed in v2.2).** The Redis plugin is now blocked from connecting to the platform's own internal Redis, closing root cause (2) — the lack of host validation on TCP/JDBC datasource connections.

3. **Helm chart default (chart 3.9.0).** Redis managed by the Appsmith Helm chart now enables authentication by default (`redis.auth.enabled: true`), with a password bootstrapped automatically on install/upgrade.

### Remediation for operators

- **Appsmith Helm chart's managed Redis:** the only guaranteed fix is to upgrade the chart and ensure your Redis is authenticated, as described in the docs:
  https://docs.appsmith.com/getting-started/setup/installation-guides/kubernetes/enable-redis-auth

- **External / cloud-managed Redis:** ensure the managed instance enforces authentication, and upgrade to **v2.2** or later to pick up the datasource-level hardening as an additional layer of defense.

- **Single-container Docker deployments:** upgrade to **v2.0** or later so the embedded Redis is password-protected; **v2.2** or later additionally blocks the Redis plugin from reaching the internal Redis.

## Note

This finding chains two issues: (1) TCP-level SSRF bypassing HTTP-only SSRF protections, distinct from the prior HTTP SSRF CVEs; and (2) unauthenticated internal Redis allowing session theft. Either alone is significant; combined they enable full admin account takeover. Both are addressed by the fixes in Resolution.

## References

- https://github.com/appsmithorg/appsmith/security/advisories/GHSA-qhfj-g87x-m39w

Page: https://cve.now/GHSA-QHFJ-G87X-M39W

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
