Skip to content
SSRF Advisory Beginner CVE-2023-50258CVE-2023-50259

GHSL-2023-201_GHSL-2023-202: Blind server-side request forgery (SSRF) in Medusa - CVE-2023-50258, CVE-2023-50259

Two unauthenticated endpoints in Medusa accept a user-supplied webhook URL and send a POST request to it without validation, enabling blind server-side request forgery. An attacker could make the Medusa server send POST requests to arbitrary internal or external hosts.

sylwia-budzynska Follow

Originally disclosed on GitHub Security Lab

Medusa contains two unauthenticated blind server-side request forgery (SSRF) vulnerabilities.

sylwia-budzynska, on GitHub Security Lab

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 does not validate the user-controlled webhook URL before passing it to an HTTP client that sends a POST request.

Impact

This issue allows for crafting POST requests on behalf of the Medusa server.

What the attacker needed

Medusa server accessible to attacker; No authentication required

The fix

The maintainer proposed a fix, but the text does not describe its details.

How it was found

  1. Start a simple Python web server to receive requests.
  2. Start Medusa and assume it runs on localhost:8081.
  3. Send a request to the testslack endpoint with a slack_webhook parameter pointing to the local Python server.
  4. Observe the response to infer whether the request succeeded.

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 can make a server send a request to a destination the attacker chooses. Here, the Medusa application has test endpoints that take a webhook URL from the request and then send a message to that URL. Because the URL is not checked, an attacker can point it at internal services or other systems, and the server will make the request on their behalf.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by sylwia-budzynska

View all

27 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.