-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUSTSEC-2022-0093: Double Public Key Signing Function Oracle Attack on ed25519-dalek
#1298
Comments
Until The maintainers of |
This can be fixed by updating |
#1298 ### Documentation: Removed `upgrade::read_length_prefixed` and `upgrade::write_length_prefixed`: https://github.com/libp2p/rust-libp2p/pull/4787/files Remove `FastMessageId`: libp2p/rust-libp2p#4138 Remove `TokioDnsConfig`: libp2p/rust-libp2p@95890b5 Implement `InboundConnectionUpgrade`/`OutboundConnectionUpgrade`: libp2p/rust-libp2p#4307 --------- Co-authored-by: Brandon Vrooman <[email protected]> Co-authored-by: Hannes Karppila <[email protected]> Co-authored-by: xgreenx <[email protected]>
Closes #1298 --------- Co-authored-by: Green Baneling <[email protected]>
FuelLabs/fuel-core#1298 ### Documentation: Removed `upgrade::read_length_prefixed` and `upgrade::write_length_prefixed`: https://github.com/libp2p/rust-libp2p/pull/4787/files Remove `FastMessageId`: libp2p/rust-libp2p#4138 Remove `TokioDnsConfig`: libp2p/rust-libp2p@95890b5 Implement `InboundConnectionUpgrade`/`OutboundConnectionUpgrade`: libp2p/rust-libp2p#4307 --------- Co-authored-by: Brandon Vrooman <[email protected]> Co-authored-by: Hannes Karppila <[email protected]> Co-authored-by: xgreenx <[email protected]>
Closes FuelLabs/fuel-core#1298 --------- Co-authored-by: Green Baneling <[email protected]>
ed25519-dalek
1.0.1
>=2
Versions of
ed25519-dalek
prior to v2.0 model private and public keys asseparate types which can be assembled into a
Keypair
, and also provide APIsfor serializing and deserializing 64-byte private/public keypairs.
Such APIs and serializations are inherently unsafe as the public key is one of
the inputs used in the deterministic computation of the
S
part of the signature,but not in the
R
value. An adversary could somehow use the signing function asan oracle that allows arbitrary public keys as input can obtain two signatures
for the same message sharing the same
R
and only differ on theS
part.Unfortunately, when this happens, one can easily extract the private key.
Revised public APIs in v2.0 of
ed25519-dalek
do NOT allow a decoupledprivate/public keypair as signing input, except as part of specially labeled
"hazmat" APIs which are clearly labeled as being dangerous if misused.
See advisory page for additional details.
The text was updated successfully, but these errors were encountered: