
PEACH
Un cadre d’isolation des locataires
Path validation compares every name of a certificate with every name constraint subtree of the same form laid down above it. Nothing bounds the number of comparisons. Constraints only ever restrict, so a CA may add as many subtrees as it likes.
Each comparison is also expensive. A directoryName goes through RFC 4518 string preparation again for every subtree it meets, about 24 µs a pair. The host of a URI or a mailbox is checked character by character, with no length limit, once per subtree.
A delegated sub-CA, even one with a pathLenConstraint of 0, can therefore add a self-issued certificate with S excluded subtrees and issue a leaf with N subject alternative names. The chain still validates, but slowly. Measured on PHP 8.3 with GMP and intl:
| Case | Chain | Time |
|---|---|---|
| directoryName, 500 names × 500 subtrees | 21.2 KB | 4.6 s |
| directoryName, 1000 × 1000 | 40.7 KB | 13.5 s |
| dNSName, 1000 × 1000 | 34.9 KB | 1.6 s |
| one 16 KB directoryName × 2000 subtrees | 59.4 KB | 1.5 s |
| Without GMP and intl, the 1000 × 1000 directoryName chain takes 23.5 s. |
An application that validates certification paths it receives can be made to spend seconds of CPU per chain, and a few parallel requests tie up its workers. The attacker needs a CA certificate that chains to a trust anchor the application accepts, since every certificate is checked for its signature before its names are compared. The default PathValidationConfig is affected.
1.6.2 and 1.6.3. Name constraints are not enforced before 1.6.2 (GHSA-3p3r-m556-g5px), so this cost does not arise there.
1.6.4 prepares each RDN once per validation instead of once per comparison, and refuses a URI or mailbox host longer than 255 octets. It counts the comparisons a path takes before checking the names of each certificate, a directoryName subtree counting once per RDN, and refuses the path with a PathValidationException once it takes more than 65 536. A path at that bound validates in about 0.25 s, and the chains above are refused in about 16 ms. Real paths stay far below the bound.
Upgrade. If you cannot, limit the size of the chains you accept, and refuse a chain whose certificates together carry more than a few dozen name constraint subtrees or subject alternative names.
Source: NVD
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."