Skip to content
RCE Disclosed report Advanced CVE-2024-3408

Authentication bypass in dtale

The application uses a hardcoded secret key in its Flask configuration, allowing attackers to forge session cookies when authentication is enabled. It also fails to restrict custom filter queries, enabling remote code execution via the update-settings endpoint even when custom filters are disabled.

man-group/dtale

Originally disclosed on huntr

man-group/dtale version 3.10.0 is vulnerable to an authentication bypass and remote code execution (RCE) due to improper input validation. The vulnerability arises from a hardcoded SECRET_KEY in the flask configuration, allowing attackers to forge a session cookie if authentication is enabled. Additionally, the application fails to properly restrict custom filter queries, enabling attackers to execute arbitrary code on the server by bypassing the restriction on the /update-settings endpoint, even when enable_custom_filters is not enabled. This vulnerability allows attackers to bypass authentication mechanisms and execute remote code on the server.

From the GitHub Advisory Database (GHSA-v9q6-fm48-rx74, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 a hardcoded Flask secret key and missing validation on custom filter queries in the update-settings endpoint.

Impact

Attackers could bypass authentication and execute arbitrary code on the server.

What the attacker needed

Authentication enabled; access to the application

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.

A secret key is like a password the server uses to sign session cookies, proving they are genuine. Because this key was hardcoded and publicly known, an attacker could create their own valid cookie and pretend to be logged in. Separately, a feature meant to filter data could be abused to run commands on the server.

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.