A prototype pollution vulnerability in the get_tx_timestamp handler allows an attacker to manipulate the Object prototype by sending crafted parameters. This can lead to active node shutdown and slashing of nodes for early leave, potentially causing a complete network shutdown.
The validateRecordTypes function in Active.ts does not check the types of the standby and maxSyncTime fields in a P2P record, allowing a type mismatch. An attacker could potentially cause a node to process malformed data, though the report only claims this as a security best practice insight.
The certificate-signing handler on a node only checked that required fields were present, not that extra fields were absent, so a crafted request could get a legitimate node to sign a payload containing fields used by the apoptosis (node-kill) gossip. An attacker could then submit that signed payload to the network and have a chosen node killed, potentially shutting down the whole network.
The gossip-final-state handler in Shardeum's consensus protocol does not verify incoming messages, allowing a malicious validator to send incorrect final account state data. This can force transactions to fail or manipulate account balances after execution.
The remove_timestamp_cache endpoint in shardus-core uses request payload properties directly as object keys, allowing prototype pollution. An attacker can send a crafted payload to overwrite the hasOwnProperty method of the cache object, causing the victim node to crash.
The repair_oos_accounts endpoint in shardus-core accepts a vote receipt and account data without verifying the signatures or consensus, so an attacker with a validator node can overwrite any account's balance. This allows setting an arbitrary balance, potentially draining pools and crashing the tokenomics.
The tryAppendVoteHash function accepts votes without verifying their signatures, so a malicious node can gossip fake votes attributed to other nodes. This prevents legitimate nodes from voting and causes the consensus system to stall, stopping new transactions from being processed.
The peer-to-peer message deserialisation code reads array lengths from the incoming stream without any upper bound, so a malformed request can declare a huge number of elements. An attacker could send such a request to exhaust Node.js memory and crash the node, causing a remote denial of service.
A node's transaction timestamp cache could be polluted via a crafted request to the get_tx_timestamp endpoint, allowing an attacker to overwrite the cache object's prototype and break stringification, causing the victim node to crash. This could be repeated to kill all nodes and shut down the network.
The archiver join limit check in shardus-core only compared the active archiver count against the maximum, ignoring pending join requests, so an attacker could queue many join requests that were all later added as active archivers. This let a single actor flood the archiver list and then use those fake archivers to sign and inject a forged cycle record, which could stop real archivers from persisting new cycle data.
The function that validates signatures on join requests counts duplicate signatures as separate signers, so a single valid signature repeated enough times meets the threshold. An attacker can therefore join the network without staking or remove nodes, potentially taking over the network.
A prototype pollution vulnerability exists in the remove_timestamp_cache handler of the state-manager module, allowing an attacker to manipulate the Object prototype by sending a crafted payload with cycleCounter set to __proto__. This can cause active node shutdown and slashing, potentially leading to a complete network shutdown.
The lib-net listener trusts a length field supplied by the remote peer and allocates that much memory before reading the data, so an attacker can send a huge length value and a small amount of data to exhaust memory. This can crash shardus instances and, on some systems, trigger the out-of-memory reaper to kill other processes.
Shardeum components use HTTP client libraries (Axios, Node-Fetch) without limits on response size, timeouts, or redirects, so an attacker-controlled node can return a huge or slow response and exhaust the target's memory, CPU, or network threads. This can cause application-level denial of service, especially against the JSON-RPC service.
The Shardeum network has two separate implementations for handling 'sync trie hash' requests (binary and internal routes), both of which allow a single node to vote multiple times for a malicious trie hash. An attacker can inflate votes for a malicious hash to win consensus and force other nodes to repair their data to the attacker's state, causing loss of funds.
The sync_trie_hashes endpoints in shardus-core do not validate that a node has already voted for a cycle or radix, allowing malicious nodes to send multiple votes and override the genuine consensus. An attacker controlling two validator nodes can set any account's balance to an arbitrary value, leading to fund loss or tokenomics collapse.
The repair_oos_accounts and repairMissingAccountsBinary endpoints in Shardeum validator nodes lack input validation on the account_id field, allowing an attacker to supply an object with a huge length value. This causes an infinite loop in Node.js, blocking the event loop and making the validator node unresponsive, leading to a total network shutdown.
A single node in a shard could send multiple votes for the same hash of a malicious trie data structure, inflating its vote count to win consensus. This allowed the attacker to force other nodes to repair their data to match the malicious hash, modifying the shard's state and causing loss of funds.
A node's timestamp cache for transactions is unbounded and its pruning ignores entries with future cycle counters, so an attacker can request timestamps for non-existent transactions with a very large cycle counter to fill memory. This can crash a node and, with modification, the whole network.
The sync_trie_hashes endpoint does not deduplicate votes, allowing a malicious node to cast multiple votes for a falsified trie hash and secure a majority. This triggers a repair process where the malicious node can supply forged account data, leading to direct loss of funds.
A gossip message handler did not verify that a user-supplied field was an array, so an attacker could send an object with a huge length value and cause an infinite loop. This made the victim node unresponsive, leading to its removal from the network and potential slashing.
The fixDeserializedWrappedEVMAccount function lacks input validation, allowing an attacker to pass an array-like object with a large length property, causing excessive memory and CPU consumption. This can lead to a denial of service, potentially shutting down the entire network.
Gossiped stake-related transactions were validated using attacker-supplied appData without re-deriving it from the transaction, so a malicious node could claim another node's nominee and steal its rewards or create many nodes with only one node's stake.
The eth_getBlockHashes handler does not correctly constrain the fromBlock and toBlock query parameters, allowing an attacker to cause an infinite loop by sending a request with a negative toBlock value. This crashes the process answering the request, potentially taking down the node and preventing the network from confirming transactions.
During the first cycles of the Shardeum network, staking checks are disabled because the number of active nodes is below a threshold, allowing an attacker to join with unlimited nodes without staking funds. This could let the attacker control all active nodes in a cycle and manipulate transaction outcomes, leading to loss of funds.
The penalty for a validator leaving the network early is deducted from the operator's stake and the node's stakeLock, but the unstake transaction later subtracts the same penalty again from the final balance. An attacker could cause a validator to lose twice the configured penalty amount, resulting in direct loss of funds.
The TransactionConsensus handlers in Shardeum validator nodes lack input validation on the cycleCounter field, allowing an attacker to set it to __proto__ and pollute the global object prototype. This can crash all validator nodes, leading to a total network shutdown or enabling an attacker to control the network and steal funds.
The setCertTime internal transaction only checks that the signature is valid, not that the signer is the node's owner, so anyone can submit a transaction that extends a victim node's stake certificate. This deducts the transaction fee from the victim's operator account and keeps the stake locked, preventing unstaking.
A JavaScript floating-point precision quirk causes an infinite loop in the eth_getBlockHashes endpoint when a negative large number is supplied as toBlock. An attacker can send a single HTTP GET request to make a node unresponsive, potentially taking down the entire network.
The validateCycles function in the sync-cycles P2P endpoint does not properly validate the type of the response, allowing a malicious node to send a non-iterable object or wrong field types that cause runtime exceptions or bypass validation. This can lead to a node getting stuck during sync and potentially cause a network partition.
SC
Shardeum: Core
Informational
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.