Skip to content

Code4rena

Based Loans

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

disclosed reports
3
most reported class
Business logic
bug classes found
1
first disclosure
2021
Find Based Loans on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Based Loans chose to make public.

Business logic

UniswapConfig getters return wrong token config if token config does not exist

The UniswapConfig contract's getter functions for token configurations incorrectly return the configuration of the first token (index 0) when queried for a non-existent token, because the non-existence check uses -1 while the index lookup returns 0. This could lead to wrong oracle prices, potentially allowing undercollateralized loans that cannot be liquidated.

Based Loans

High
Business logic

uint(-1) index for not found

The smart contract functions that look up token configurations by symbol hash, cToken, or underlying asset check whether the returned index equals the maximum unsigned integer to indicate 'not found'. However, an uninitialised unsigned integer defaults to zero, so the sentinel value can never be returned; instead, zero is returned for non-existent configurations, which is also a valid index for the first configuration. This could cause callers to treat a missing configuration as the first valid one.

Based Loans

High
Business logic

Reward rates can be changed through flash borrows

The reward rate for a market can be manipulated by temporarily inflating its total borrows through a flash loan or miner-ordered transaction bundle, then calling the permissionless refresh function. An attacker can thus increase rewards in markets where they are a large participant, taking rewards from other users.

Based Loans

Medium