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.
The stake removal functions accept a negative amount without validation, and when the removal matures, creating a coin with that negative amount causes a panic that halts the chain. An attacker can trigger this at will by sending a message with a negative amount.
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.
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.
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.
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.
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.
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.
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.
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.
The TopicsHandler methods use sdk.Context in concurrent goroutines, which is not thread-safe, potentially causing race conditions and data corruption. An attacker could exploit this to cause unpredictable behaviour or crashes.
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.
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.
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.
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.
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.
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.
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.
The RemoveDelegateStake function ignores errors when checking for existing stake removals, unlike RemoveStake which returns the error. This could allow a delegate stake removal to be created even if the check fails.
The function SafeApplyFuncOnAllActiveEpochEndingTopics processes more pages of topics than the specified maximum because the loop condition checks the page counter after processing. An attacker could cause the function to process additional topics beyond the intended limit, potentially leading to unintended reward distribution.
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.
The argmaxBlockByStake function fails to update highestVotingPower when a new block with higher voting power is found, so it may return a block that does not have the highest cumulative voting power. This could lead to incorrect block selection and downstream inconsistencies.
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.
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.
The FundTopic function adds the funded amount to the topic fee revenue and then passes the same amount to the activation check, which adds it again. This double counting overestimates the topic weight, so a topic can be activated before reaching the global minimum weight.
AL
Allora
Medium
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.