Skip to content

Sherlock

Allora

Every publicly disclosed report for Allora and what kind of bugs they were.

disclosed reports
49
most reported class
Business logic
bug classes found
5
first disclosure
2024
Find Allora on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Allora chose to make public.

DoS

The malicious node may not execute the http request

A node in the blockchain network can choose not to execute an HTTP request that is supposed to call an external API, preventing the API from being invoked. This can cause the protocol to fail or reduce efficiency.

Allora

Medium
DoS

Malicious Reputer cause emissions/msgserver/InsertBulkReputerPayload to fail

A malicious reputer could submit an extremely large CombinedValue in their payload, causing the InsertBulkReputerPayload function to fail due to a decimal multiplication overflow. This prevents other reputers' data from being submitted and processed, leading to a loss of rewards for that block.

Allora

High
Business logic

Not appropriate Inferences will be used when calculating the forecast

The function that verifies forecasts builds a filtered list of forecast elements but never saves it back, so all forecast elements are used when calculating the forecast. An attacker could submit forecasts referencing inferers outside the accepted set, and those forecasts would still be counted.

Allora

High
Business logic

`GenerateForecastScores` acidentally updates inferences scores

The function GenerateForecastScores, intended to update forecast scores, mistakenly inserts a worker's inference score instead of a forecast score when there is only one forecaster. This corrupts the internal accounting of worker scores and rewards, causing workers to receive incorrect reward amounts.

Allora

High
Business logic

RemoveStakes and RemoveDelegateStakes silently handle errors in EndBlocker

The stake removal functions in the EndBlocker send funds to the staker before updating the stake state, and if the state update fails, the error is logged and the loop continues. This can leave the state inconsistent and allow the staker to receive their stake while still being able to queue another removal for the same stake.

Allora

High
Access control

Lack of Authentication in OnRecvPacket

The Allora chain's IBC middleware did not authenticate incoming packets by channel ID or sender, so it could process packets from unintended or unauthorised channels. An attacker could potentially trigger malicious or unexpected actions on the receiving chain.

Allora

Medium
Business logic

Standard deviation calculation is biased

The standard deviation calculation in the code uses a biased estimator by dividing by N instead of N-1, leading to an underestimation of the true standard deviation. This affects the regret and time step scores used in the protocol, causing slightly incorrect weight calculations.

Allora

Medium
DoS

Lack of Timeout leads Resource Exhaustion in API Client

The HTTP client used in the makeApiCall function had no timeout settings, so connections could hang indefinitely. An attacker could exploit this to cause resource exhaustion and denial of service by opening many long-lasting connections.

Allora

Medium
DoS

Incomplete Topic Processing Due to Continuous Retry on Pagination Error

The function that applies a callback to all active topics with an epoch ending at the current block uses a continue statement when fetching a page of topic IDs fails, causing it to retry the same page indefinitely. An attacker could trigger a persistent error to cause an infinite loop, skip all topic processing, and waste resources.

Allora

Medium
Business logic

`GetForecastScoresUntilBlock` can get more score samples than the max allowed

The function GetForecastScoresUntilBlock can collect more score samples than the configured maximum because the inner loop over scores does not check the count limit. This can cause different reward fractions for workers even when scores are identical, as the number of samples may vary between topics.

Allora

Medium
Business logic

If old coefficient is bigger than the new one then the reputer has it's coeff reduced more than it should

The report claims that in the Allora blockchain's reward calculation, when the old listened stake fraction is greater than the new one, a subtraction yields a negative value that is used as a divisor, causing reputer coefficients to be reduced below the minimum allowed fraction. This could break the minStakeFraction invariant and unfairly reduce reputer rewards.

Allora

Medium
Business logic

math miscalculation artificially deflates scores

A math error in the consensus score calculation causes scores to be artificially deflated when a consensus loss is zero. An attacker could exploit this to unfairly lower scores in rare cases.

Allora

Medium
Business logic

The SelectTopNWorkerNonces function lacks a sorting algorithm internally

The SelectTopNWorkerNonces function does not sort worker nonces before selecting the first N, so it may pick nonces that are not the latest. This could cause the system to request inferences from workers that are offline or unable to respond correctly.

Allora

Medium
Business logic

Unchecked Error in ResetChurnableTopics Function

The ResetChurnableTopics function ignores the error returned by the Clear method, so if clearing fails, the function still returns nil. This could cause silent failures and inconsistent state, as the system may proceed as if the reset succeeded.

Allora

Medium
Business logic

SendDataWithRetry doesn't work properly(Retries will not happen)

The SendDataWithRetry function in Allora's appchain code checks the error return value from BroadcastTx, but the underlying Cosmos SDK BroadcastTxAsync returns errors in the first return value (the response) and nil as the error. As a result, the retry loop never triggers because err is always nil, so failed transactions are not retried.

Allora

Medium
Business logic

logic bug in this IBC middleware code related to packet handling

The IBC middleware's OnRecvPacket function processes any packet whose memo can be unmarshalled into a Message with a non-empty payload, without checking the sender address. An attacker could send a packet with a crafted memo from an arbitrary sender, causing the middleware to process it as a GMP packet and potentially leading to unexpected behaviour or errors.

Allora

Medium
Access control

The worker and reputer's payload may be tampered due to lack of check for the pubkey's ownership

The InsertBulkWorkerPayload and InsertBulkReputerPayload functions verify that a data bundle is signed by the private key corresponding to a given public key, but they do not check that the public key actually belongs to the claimed worker or reputer. An attacker can therefore sign a tampered data bundle with their own key and submit it as if it came from an innocent participant, causing incorrect rewards or punishments.

Allora

High
Access control

Anyone can overwrite Reputer and Worker info attached to a LibP2PKey

The allora-chain registration process does not verify that the caller owns the LibP2PKey, allowing anyone to overwrite the reputer or worker information associated with any key. This can poison the allora-inference-base and disrupt the Allora network.

Allora

High
DoS

emissions/keeper/GetIdsOfActiveTopics may always return empty array []

The function GetIdsOfActiveTopics uses a pagination method that starts from key 0, but if the active topics have IDs that do not start at 0, it returns an empty array. An attacker could create many topics that are never activated, causing the function to always return empty, so topic weights are not updated and rewards are not processed.

Allora

High