VDB
Sign up
MEDIUM5.3

GHSA-4c4x-jm2x-pf9j

Rekor affected by Server-Side Request Forgery (SSRF) via provided public key URL

Quick fix

GHSA-4c4x-jm2x-pf9j — github.com/sigstore/rekor: upgrade to the fixed version with the command below.

go get github.com/sigstore/rekor@v1.5.0

Details

## Summary

`/api/v1/index/retrieve` supports retrieving a public key via a user-provided URL, allowing attackers to trigger SSRF to arbitrary internal services.

Since the SSRF only can trigger GET requests, the request cannot mutate state. The response from the GET request is not returned to the caller so data exfiltration is not possible. A malicious actor could attempt to probe an internal network through [Blind SSRF](https://portswigger.net/web-security/ssrf/blind).

## Impact

* SSRF to cloud metadata (169.254.169.254) * SSRF to internal Kubernetes APIs * SSRF to any service accessible from Fulcio's network

## Patches

Upgrade to v1.5.0. Note that this is a breaking change to the search API and fully disables lookups by URL. If you require this feature, please reach out and we can discuss alternatives.

## Workarounds

Disable the search endpoint with `--enable_retrieve_api=false`.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/sigstore/rekor
Introduced in: 0Fixed in: 1.5.0
Fixgo get github.com/sigstore/rekor@v1.5.0

References