Step CA to internetowy urząd certyfikacji do bezpiecznego, zautomatyzowanego zarządzania certyfikatami dla DevOps. W wersjach od 0.24.0 do przed 0.30.0-rc3 atakujący może wywołać panic index out-of-bounds w Step CA, wysyłając spreparowany certyfikat klucza atestacji (AK) z pustym rozszerzeniem Extended Key Usage (EKU) podczas atestacji urządzenia TPM. Podczas walidacji wyzwania ACME device-attest-01 z użyciem atestacji TPM, Step CA sprawdza, czy certyfikat AK zawiera OID tcg-kp-AIKCertificate Extended Key Usage. W trakcie tej walidacji wartość rozszerzenia EKU jest dekodowana z reprezentacji ASN.1 i sprawdzany jest pierwszy element. Spreparowany certyfikat może zawierać rozszerzenie EKU, które dekoduje się do pustej sekwencji, powodując panic podczas dostępu do pierwszego elementu pustego slice'a. Podatność ta jest osiągalna tylko w przypadku skonfigurowanego wyzwania ACME device-
▸ Pokaż oryginał (EN)
Step CA is an online certificate authority for secure, automated certificate management for DevOps. From 0.24.0 to before 0.30.0-rc3, an attacker can trigger an index out-of-bounds panic in Step CA by sending a crafted attestation key (AK) certificate with an empty Extended Key Usage (EKU) extension during TPM device attestation. When processing a device-attest-01 ACME challenge using TPM attestation, Step CA validates that the AK certificate contains the tcg-kp-AIKCertificate Extended Key Usage OID. During this validation, the EKU extension value is decoded from its ASN.1 representation and the first element is checked. A crafted certificate could include an EKU extension that decodes to an empty sequence, causing the code to panic when accessing the first element of the empty slice. This vulnerability is only reachable when a device-attest-01 ACME challenge with TPM attestation is configured. Deployments not using TPM device attestation are not affected. This vulnerability is fixed in 0.30.0-rc3.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LSmallstep Step Ca
APPSmallstep0.30.00.24.0 – 0.30.0 (bez)