iotaledger / iotaledger/identity

RUSTSEC-2023-0052: webpki: CPU denial of service in certificate path building

Open
#1,224 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
346
Forks
100
Avg merge
13h 41m
Merged PRs (30d)
2

Description

> webpki: CPU denial of service in certificate path building

| Details | |
| ------------------- | ---------------------------------------------- |
| Package | `webpki` |
| Version | `0.22.0` |
| Date | 2023-08-22 |

When this crate is given a pathological certificate chain to validate, it will
spend CPU time exponential with the number of candidate certificates at each
step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

This was previously reported in
<https://github.com/briansmith/webpki/issues/69> and re-reported recently
by Luke Malinowski.

`rustls-webpki` is a fork of this crate which contains a fix for this issue
and is actively maintained.

See [advisory page](https://rustsec.org/advisories/RUSTSEC-2023-0052.html) for additional details.

Contributor guide

Open the contributing guide

Research direction

Start by locating the dependency manifests and uses of webpki in this Rust repository. Review the RUSTSEC-2023-0052 advisory and the rustls-webpki fork mentioned in the issue, then run the existing test suite and dependency audit after the affected dependency path is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.