mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 20:19:34 +00:00
cd57a10c90
The problem actually exists in two parts: 1. When sending chunks over a connection, if the queue size is greater than N, the seed is predictable across every monero node. >"If rand() is used before any calls to srand(), rand() behaves as if it was seeded with srand(1). Each time rand() is seeded with the same seed, it must produce the same sequence of values." 2. The CID speaks for itself: "'rand' should not be used for security-related applications, because linear congruential algorithms are too easy to break." *But* this is an area of contention. One could argue that a CSPRNG is warranted in order to fully mitigate any potential timing attacks based on crafting chunk responses. Others could argue that the existing LCG, or even an MTG, would suffice (if properly seeded). As a compromise, I've used an MTG with a full bit space. This should give a healthy balance of security and speed without relying on the existing crypto library (which I'm told might break on some systems since epee is not (shouldn't be) dependent upon the existing crypto library). |
||
---|---|---|
.. | ||
abstract_tcp_server.h | ||
abstract_tcp_server2.h | ||
abstract_tcp_server2.inl | ||
abstract_tcp_server_cp.h | ||
abstract_tcp_server_cp.inl | ||
buffer.h | ||
connection_basic.hpp | ||
enums.h | ||
http_auth.h | ||
http_base.h | ||
http_client.h | ||
http_client_base.h | ||
http_client_via_api_helper.h | ||
http_protocol_handler.h | ||
http_protocol_handler.inl | ||
http_server_cp.h | ||
http_server_cp2.h | ||
http_server_handlers_map2.h | ||
http_server_impl_base.h | ||
http_server_thread_per_connect.h | ||
jsonrpc_protocol_handler.h | ||
jsonrpc_server_handlers_map.h | ||
jsonrpc_server_impl_base.h | ||
jsonrpc_structs.h | ||
levin_base.h | ||
levin_client.h | ||
levin_client.inl | ||
levin_client_async.h | ||
levin_client_async.inl | ||
levin_helper.h | ||
levin_protocol_handler.h | ||
levin_protocol_handler_async.h | ||
levin_server_cp.h | ||
levin_server_cp2.h | ||
local_ip.h | ||
multiprotocols_server.h | ||
munin_connection_handler.h | ||
munin_node_server.h | ||
net_fwd.h | ||
net_helper.h | ||
net_parse_helpers.h | ||
net_ssl.h | ||
net_utils_base.h | ||
network_throttle-detail.hpp | ||
network_throttle.hpp | ||
protocol_switcher.h | ||
rpc_method_name.h | ||
smtp.h | ||
smtp.inl | ||
smtp_helper.h |