Skip to content
SSRF Advisory Intermediate CVE-2024-31991CVE-2024-31992CVE-2024-31993CVE-2024-31994

GHSL-2023-225, GHSL-2023-226, GHSL-2023-227, and GHSL-2023-228: Server-Side Request Forgery (SSRF) and Denial of Service (DoS) in Mealie - CVE-2024-31991, CVE-2024-31992, CVE-2024-31993, CVE-2024-31994

Mealie v1.0.0-RC1.1 is vulnerable to multiple SSRF and DoS issues because user-controlled URLs in recipe and image importers are not validated or rate-limited. An authenticated attacker could map internal HTTP servers, retrieve files, exhaust CPU or memory, and cause the container to crash or restart.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

Mealie v1.0.0-RC1.1 is vulnerable to multiple SSRF and DoS vulnerabilities. These vulnerabilities can be leveraged to identify, map, and retrieve the contents of webservers on Mealie’s local network as well as being the victim of, or launching point for, a denial of service attack against a target of the attacker’s…

ghsecuritylab, 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

Likely the application fails to validate or restrict user-supplied URLs and lacks rate limiting and timeouts on outbound requests.

Impact

An authenticated user could map internal HTTP servers, retrieve files, exhaust CPU or memory, and cause the Mealie container to crash or restart, and potentially use Mealie to sustain traffic against an external target.

What the attacker needed

Authenticated user account; network access to Mealie

How it was found

  1. Send a POST request to /api/recipes/create-url with a URL pointing to a non-existent resource.
  2. Observe a 500 Internal Server Error response.
  3. Send a POST request to /api/recipes/create-url with a URL pointing to a webserver on the same private network.
  4. Observe a 400 Bad Request response with BAD_RECIPE_DATA, confirming the server exists.
  5. Send a POST request to /api/recipes/create-url with a URL pointing to a large file such as a Debian ISO.
  6. Observe high CPU usage on the Mealie container.

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.

The application lets users provide a web address for importing recipes or images, but it does not check where that address points. An attacker can make the server visit internal addresses to discover other servers or download huge files, which can overload the server and make it crash.

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 ghsecuritylab

View all

132 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.