nim-eth/eth/p2p
Kim De Mey aa92ad4f42
discv4: Fix assert on invalid RLP list in Neighbours message (#763)
The assert would occur when the rlp size of the a node in the
nodes rlp list is incorrectly set too high and then the next
`listElem` call for the next node will start from the
incorrect data. When that data is not a list the assert in
`listElem` will be triggered.

Fixed by adding a `listLen` call which checks if it is a list.
Added also more strictness by:
- Checking if that list is of len 4, which it must be
- raising immediatly on invalid IP length
- raising immediatly on invalid public key / node id

+ test cases
2024-12-02 09:38:00 +01:00
..
discoveryv5 fix potential infinite loop in randomNodes (#754) 2024-10-24 17:24:53 +02:00
private devp2p: upgrade to v5 (EIP-706) (#760) 2024-11-08 03:44:04 +01:00
auth.nim remove unusued rlpx features, tighten hello exchange and some error h… (#759) 2024-11-05 16:30:41 +01:00
bootnodes.nim update Sepolia and Holesky bootnodes (#747) 2024-10-09 15:23:58 +00:00
discovery.nim discv4: Fix assert on invalid RLP list in Neighbours message (#763) 2024-12-02 09:38:00 +01:00
ecies.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
enode.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
kademlia.nim discv4: prefer ipv6 (#751) 2024-10-29 10:03:13 +01:00
p2p_backends_helpers.nim remove unusued rlpx features, tighten hello exchange and some error h… (#759) 2024-11-05 16:30:41 +01:00
p2p_protocol_dsl.nim devp2p: upgrade to v5 (EIP-706) (#760) 2024-11-08 03:44:04 +01:00
p2p_tracing.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
p2p_tracing_ctail_plugin.nim Moved eth-p2p to eth 2019-02-05 17:40:29 +02:00
peer_pool.nim Align core types with execution spec (#733) 2024-09-29 10:52:19 +02:00
rlpx.nim devp2p: upgrade to v5 (EIP-706) (#760) 2024-11-08 03:44:04 +01:00
rlpxcrypt.nim remove unusued rlpx features, tighten hello exchange and some error h… (#759) 2024-11-05 16:30:41 +01:00
rlpxtransport.nim devp2p: upgrade to v5 (EIP-706) (#760) 2024-11-08 03:44:04 +01:00