Skip to content

The attestation-policy endpoint is not protected by admin autentication

High
fitzthum published GHSA-49mc-2q77-m99x Oct 9, 2025

Package

cargo trustee (Rust)

Affected versions

v0.11.0

Patched versions

v0.15.0

Description

Summary

Looks like that the attestation-policy endpoint is (was) not checking if the kbs-client submitting the request is actually authenticated (has the right key). This allows any kbs-client to actually change the attestation policy.

NOTE: this vulnerability is already fixed in #957

Details

kbs/src/api_server.rs line 196:

        "attestation-policy" if request.method() == Method::POST => {
            core.attestation_service.set_policy(&body).await?;

            Ok(HttpResponse::Ok().finish())

PoC

Submit a request to change the attestation policy with a wrong key and it should go through

Impact

This could allow anyone to change the attestation policy of trustee, which is pretty bad.

Severity

High

CVE ID

CVE-2025-61779

Weaknesses

No CWEs

Credits