Skip to content

Immunefi

Shardeum: Core

Every publicly disclosed report for Shardeum: Core and what kind of bugs they were.

disclosed reports
52
most reported class
DoS
bug classes found
6
first disclosure
2024
Find Shardeum: Core on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Shardeum: Core chose to make public.

Prototype pollution

Prototype pollution vulnerability in get_tx_tim

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.

Shardeum: Core

Critical
Misconfiguration

ActivetsValidateRecordTypes do not check all th

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.

Shardeum: Core

Informational
Crypto

Tricking legit node to signed maliciously contr

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.

Shardeum: Core

Critical
Access control

Bypassing sender verification in gossip-final-s

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.

Shardeum: Core

Critical
Prototype pollution

Remove_timestamp_cache prototype pollution lead

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.

Shardeum: Core

Critical
Access control

Lack of consensus validation in repair_oos_acco

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.

Shardeum: Core

Critical
DoS

Forcing the new POQo system to fail preventing

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.

Shardeum: Core

High
DoS

Pp deserialization denial of service issue

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.

Shardeum: Core

Informational
Prototype pollution

Killing nodes by polluting tx timestamp cache o

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.

Shardeum: Core

Critical
Business logic

Archiver Join Limit Logic Error

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.

Shardeum: Core

High
Access control

Bypass Certificate Signing Validation

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.

Shardeum: Core

Critical
Prototype pollution

Prototype pollution vulnerability in remove_tim

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.

Shardeum: Core

Critical
DoS

Lib-net can be used to force oom reap of shardu

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: Core

Critical
DoS

Malicious HTTP responses allow systemic applica

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.

Shardeum: Core

Critical
Business logic

An alternative entry point with a separated but

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.

Shardeum: Core

Critical
Business logic

Lack of vote validation in sync_trie_hashes lea

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.

Shardeum: Core

Critical
DoS

Improper input validation in repair_oos_account

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.

Shardeum: Core

Critical
Business logic

Inflating the votes of the hash for a malicious

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.

Shardeum: Core

Critical
DoS

Crashing the network by filling timestamp cache

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.

Shardeum: Core

Critical
Business logic

Lack of voter deduplication in sync_trie_hashes

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.

Shardeum: Core

Critical
DoS

A missing check for the type of a variable allo

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.

Shardeum: Core

Critical
DoS

Improper input validation in fixDeserializedWra

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.

Shardeum: Core

Critical
Business logic

Steal Rewards and Take over Network by Faking A

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.

Shardeum: Core

Critical
DoS

Infinite loop in shardeum

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.

Shardeum: Core

Critical
Business logic

For the first cycles of the network a maliciou

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.

Shardeum: Core

High
Business logic

Double slashing of validators

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.

Shardeum: Core

Informational
Prototype pollution

Improper input validation in TransactionConsenu

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.

Shardeum: Core

Critical
Access control

Abusing setCertTime Transactions to drain node

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.

Shardeum: Core

Critical
DoS

A math quirk in Javascript allows anyone to tak

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.

Shardeum: Core

Critical
DoS

Network split due to the sync issue in PP modul

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.

Shardeum: Core

Informational