Skip to content

Immunefi

Shardeum: Core II

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

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

Disclosed reports

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

DoS

Node.js crash on counterMap overflow

The counterMap in the NestedCounters class is never cleared, so an attacker can send many requests with unique second parameters to grow it indefinitely, eventually crashing Node.js. This can disable nodes and potentially shut down the network.

Shardeum: Core II

Informational
Crypto

Use of Vulnerable function results in prediction of archivers

The function getRandomArchiver uses Math.random() to select an archiver, which is not cryptographically secure and can be predicted. An attacker could predict which archiver will be chosen and potentially manipulate data syncing by controlling that archiver.

Shardeum: Core II

Informational
Misconfiguration

Unverified data in safety sync

The safety sync process accepts snapshot data offers without verifying their contents or the sender's authenticity, so a malicious node could send corrupted data. This could cause the receiving node to sync invalid data and affect other nodes that interact with it.

Shardeum: Core II

Informational
DoS

AddressToPartition input is unsanitized, allowing to take whole network down

The addressToPartition function in shardus-core does not validate its input, so an attacker can supply an array instead of a string, causing the computed partition to fall outside the valid range. This can lead to uncaught exceptions and potentially shut down network nodes.

Shardeum: Core II

Informational
Business logic

Reusing old transaction receipt to rollback account balance

The binary_repair_oos_accounts handler does not verify whether a transaction receipt has already been applied, allowing an attacker to reuse an old receipt to roll back an account balance to a previous value. The updated balance is then accepted across the network.

Shardeum: Core II

Critical
Prototype pollution

[Informational] Code logic contains potential risk of full network shutdown

The report claims that object handlers in shardus-core use array access on route names without validating that the property is an own property, so a route name like 'defineGetter' could invoke a prototype method and overwrite values. The author says this could lead to a full network shutdown if the handler were written in a slightly different but equivalent way.

Shardeum: Core II

Informational
DoS

Specifically crafted penalty TX may cause total network shutdown.

A crafted penalty transaction bypasses the validateTxnFields check because the penalty handler is not awaited, so an unknown violation type throws an uncaught exception. Every node that processes the transaction logs a fatal error and shuts down, which could stop the network from confirming new transactions.

Shardeum: Core II

Critical
Business logic

ValidateTxnFields check for internal transactions can be bypassed

The transaction field validation checks debug transactions before internal transactions, so a transaction carrying both flags skips several internal-transaction checks. An attacker running a node could then submit malformed internal transactions, such as a penalty or reward-time transaction, to manipulate staking and reward state.

Shardeum: Core II

Critical
Business logic

Consensus can be bypassed by single validator node from transaction execution group

The receipt verification routine counted signatures without checking that each came from a distinct validator, so one malicious validator could submit the same signature many times and have a transaction treated as approved by the execution group. That let the attacker return arbitrary state for the transaction and modify chain state.

Shardeum: Core II

Critical
Business logic

Consensus algorithm doesn't deduplicate votes, allowing a malicious validator to completely falsify transactions

The consensus algorithm counts duplicate votes as distinct, so a malicious validator can submit a receipt containing only its own repeated vote and trick other nodes into accepting it as a quorum. This lets the attacker falsify transaction end states for accounts in its shard, for example creating coins out of nothing or emptying balances.

Shardeum: Core II

Critical
Access control

Absence of signature deduplication for receipt in the binary_repair_oos_accounts P2P handler

The binary_repair_oos_accounts peer-to-peer handler verifies receipt signatures but does not check for duplicates, so a single valid signature can be repeated to meet the minimum signature threshold. An attacker running one active node can therefore submit a forged receipt and set any account balance to an arbitrary value, which the network accepts.

Shardeum: Core II

Critical
Access control

An attacker can change the account balance after the transaction has been processed.

A node in the execution group could alter account balances after a transaction was processed because the binary_repair_oos_accounts handler did not recompute the proposal hash during signature verification. An attacker running such a node could set any balance for accounts involved in transactions it processed.

Shardeum: Core II

Critical