mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-30 08:13:58 +01:00
Add rustsec advisory for GHSA-48vq-8jqv-gm6f (#1024)
* Add rustsec advisory for GHSA-48vq-8jqv-gm6f * Update RUSTSEC-0000-0000.md Co-authored-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
This commit is contained in:
18
crates/ckb/RUSTSEC-0000-0000.md
Normal file
18
crates/ckb/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "ckb"
|
||||
date = "2021-07-25"
|
||||
url = "https://github.com/nervosnetwork/ckb/security/advisories/GHSA-48vq-8jqv-gm6f"
|
||||
aliases = ["GHSA-48vq-8jqv-gm6f"]
|
||||
[versions]
|
||||
patched = [">= 0.40.0"]
|
||||
```
|
||||
|
||||
# Remote memory exhaustion in ckb
|
||||
|
||||
In the ckb sync protocol, SyncState maintains a HashMap called 'misbehavior' that keeps a score of a peer's violations of the protocol. This HashMap is keyed to PeerIndex (an alias for SessionId), and entries are never removed from it. SessionId is an integer that increases monotonically with every new connection.
|
||||
|
||||
A remote attacker can manipulate this HashMap to grow forever, resulting in degraded performance and ultimately a panic on allocation failure or being killed by the OS, depending on the platform.
|
||||
|
||||
This is a critical severity security bug. It could be exploited to create a targeted or network-wide denial of service, to reduce the hash power of the network as part of a 51% attack, and perhaps in other creative ways.
|
||||
Reference in New Issue
Block a user