From 9f1b79d4420dbf0b79b6b644067ee74df5e91328 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:13:23 +0000 Subject: [PATCH] Publish Advisories GHSA-f96h-pmfr-66vw GHSA-qcvh-p9jq-wp8v --- .../GHSA-f96h-pmfr-66vw.json | 61 +++++++++++++++++ .../GHSA-qcvh-p9jq-wp8v.json | 65 +++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 advisories/github-reviewed/2024/10/GHSA-f96h-pmfr-66vw/GHSA-f96h-pmfr-66vw.json create mode 100644 advisories/github-reviewed/2024/10/GHSA-qcvh-p9jq-wp8v/GHSA-qcvh-p9jq-wp8v.json diff --git a/advisories/github-reviewed/2024/10/GHSA-f96h-pmfr-66vw/GHSA-f96h-pmfr-66vw.json b/advisories/github-reviewed/2024/10/GHSA-f96h-pmfr-66vw/GHSA-f96h-pmfr-66vw.json new file mode 100644 index 00000000000..42573c1d11c --- /dev/null +++ b/advisories/github-reviewed/2024/10/GHSA-f96h-pmfr-66vw/GHSA-f96h-pmfr-66vw.json @@ -0,0 +1,61 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-f96h-pmfr-66vw", + "modified": "2024-10-15T18:12:57Z", + "published": "2024-10-15T18:12:57Z", + "aliases": [ + "CVE-2024-47874" + ], + "summary": "Starlette Denial of service (DoS) via multipart/form-data", + "details": "### Summary\nStarlette treats `multipart/form-data` parts without a `filename` as text form fields and buffers those in byte strings with no size limit. This allows an attacker to upload arbitrary large form fields and cause Starlette to both slow down significantly due to excessive memory allocations and copy operations, and also consume more and more memory until the server starts swapping and grinds to a halt, or the OS terminates the server process with an OOM error. Uploading multiple such requests in parallel may be enough to render a service practically unusable, even if reasonable request size limits are enforced by a reverse proxy in front of Starlette.\n\n### PoC\n\n```python\nfrom starlette.applications import Starlette\nfrom starlette.routing import Route\n\nasync def poc(request):\n async with request.form():\n pass\n\napp = Starlette(routes=[\n Route('/', poc, methods=[\"POST\"]),\n])\n```\n\n```sh\ncurl http://localhost:8000 -F 'big=