CVE-2024-35185
JSON

5.3medium

Denial of service of Minder Server with attacker-controlled REST endpoint

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.71% (higher than 49% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-fjw8-3gp8-4cvxGO-2024-2864

Description

Minder is a software supply chain security platform. Prior to version 0.0.49, the Minder REST ingester is vulnerable to a denial of service attack via an attacker-controlled REST endpoint that can crash the Minder server. The REST ingester allows users to interact with REST endpoints to fetch data for rule evaluation. When fetching data with the REST ingester, Minder sends a request to an endpoint and will use the data from the body of the response as the data to evaluate against a certain rule. If the response is sufficiently large, it can drain memory on the machine and crash the Minder server. The attacker can control the remote REST endpoints that Minder sends requests to, and they can configure the remote REST endpoints to return responses with large bodies. They would then instruct Minder to send a request to their configured endpoint that would return the large response which would crash the Minder server. Version 0.0.49 fixes this issue.

Affected

Product or packageVersionsReported by
stacklok minder< 0.0.49, before 0.0.49CVE List
github.com/stacklok/minder (Go)before 0.0.49GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Minder is a software supply chain security platform. Prior to version 0.0.49, the Minder REST ingester is vulnerable to a denial of service attack via an attacker-controlled REST endpoint that can crash the Minder server. The REST ingester allows users to interact with REST endpoints to fetch data for rule evaluation. When fetching data with the REST ingester, Minder sends a request to an endpoint and will use the data from the body of the response as the data to evaluate against a certain rule. If the response is sufficiently large, it can drain memory on the machine and crash the Minder server. The attacker can control the remote REST endpoints that Minder sends requests to, and they can configure the remote REST endpoints to return responses with large bodies. They would then instruct Minder to send a request to their configured endpoint that would return the large response which would crash the Minder server. Version 0.0.49 fixes this issue.

GitHub Advisory Database

The Minder REST ingester is vulnerable to a denial of service attack via an attacker-controlled REST endpoint that can crash the Minder server.

The REST ingester allows users to interact with REST endpoints to fetch data for rule evaluation. When fetching data with the REST ingester, Minder sends a request to an endpoint and will use the data from the body of the response as the data to evaluate against a certain rule. Minder sends the request on these lines: https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L131-L139

… and parses the response body on these lines:

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L147-L150

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L196-L220

Minder creates the URL of the endpoint via templating on these lines:

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L121-L123

As far as I can tell, at this stage in rule evaluation, users fully control the raw template and the params passed to the template via the RuleType type:

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/pkg/api/protobuf/go/minder/v1/minder.pb.go#L6151-L6173

I have not seen anything that enforces users to only send requests to GitHub REST endpoints. If there is such a constraint, it limits the ease with which this vulnerability can be exploited, but it is still possible. If there is not such a constraint, it is easy to exploit this vuln.

When Minder parses the response from a remote endpoint, it reads the response entirely into memory on these lines:

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L207

and

https://github.com/stacklok/minder/blob/daccbc12e364e2d407d56b87a13f7bb24cbdb074/internal/engine/ingester/rest/rest.go#L213

If the response is sufficiently large, it can drain memory on the machine and crash the Minder server.

The attacker can control the remote REST endpoints that Minder sends requests to, and they can configure the remote REST endpoints to return responses with large bodies. They would then instruct Minder to send a request to their configured endpoint that would return the large response which would crash the Minder server.

Go Vulnerability Database

Denial of service of Minder Server with attacker-controlled REST endpoint in github.com/stacklok/minder

NVD (es)

Minder es una plataforma de seguridad de la cadena de suministro de software. Antes de la versión 0.0.49, el integrador REST de Minder es vulnerable a un ataque de denegación de servicio a través de un endpoint REST controlado por un atacante que puede bloquear el servidor Minder. El recopilador REST permite a los usuarios interactuar con endpoints REST para recuperar datos para la evaluación de reglas. Al recuperar datos con el ingestador REST, Minder envía una solicitud a un endpoint y utilizará los datos del cuerpo de la respuesta como datos para evaluar según una regla determinada. Si la respuesta es lo suficientemente grande, puede agotar la memoria de la máquina y bloquear el servidor Minder. El atacante puede controlar los endpoints REST remotos a los que Minder envía solicitudes y puede configurar los endpoints REST remotos para devolver respuestas con cuerpos grandes. Luego le indicarían a Minder que enviara una solicitud a su endpoint configurado que devolvería una respuesta grande que colapsaría el servidor de Minder. La versión 0.0.49 soluciona este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-35185 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-fjw8-3gp8-4cvx changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2864 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-35185 changed 2026-06-17Public domain