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.
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.
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.
The network only blocks unstaking while a validator is in the active state, so a validator can force itself into the ready state, unstake, then leave the network without the leaving-early penalty being applied. An attacker who runs a validator could therefore withdraw their full stake and avoid slashing.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The debug middleware builds the signed payload from a query string truncated at the second question mark, while the handler reads the full parsed query. An attacker holding a valid signature could therefore alter the last query parameter or turn a string into an array without invalidating the signature.
SC
Shardeum: Core II
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.