GHSL-2023-262: Server-side request forgery (SSRF) vulnerability in Dtale 3.8.1 - CVE-2024-21642
The web_upload function in Dtale 3.8.1 takes a user-controlled url parameter and makes a GET request to it without restrictions, enabling server-side request forgery. An attacker could access internal network resources and read files from arbitrary sources that Dtale can process.
Originally disclosed on GitHub Security Lab
The webupload function in dtale/views.py takes a user-controlled url parameter and passes it to loaderfunc in dtale/cli/loaders/csvloader.py, which then passes it to handlepath function in dtale/cli/utils.py, which uses the destination defined in url to make a GET request on line 244. There are no limitations set on…
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
The application fails to validate or restrict the user-supplied URL before using it to make a server-side HTTP request.
Impact
This issue allows for crafting GET requests to internal and external resources on behalf of the server, and for viewing any files from arbitrary sources that dtale can process; for other file types it is a blind SSRF.
What the attacker needed
Access to the web_upload endpoint; ability to supply a url parameter
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.
Server-side request forgery (SSRF) is when an attacker makes a server send requests to places the attacker cannot reach directly. Here, the Dtale application lets a user supply a web address, and the server fetches it without checking where it points. This means an attacker could make the server access internal systems or read files it should not.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.