Uniswap’s not too long ago launched bug bounty program has led to the invention of a now-fixed vulnerability of the protocol’s Common Router good contract.
The automated market maker released two new good contracts to its platform in November 2022. Permit2 permits token approvals to be shared and managed throughout totally different functions, whereas Common Router unifies ERC-20 and nonfungible tokens (NFTs) swapping right into a single swap router.
Uniswap additionally marketed a profitable bug bounty program to establish potential vulnerabilities in its good contracts in direction of the top of 2022 because it appeared to guarantee the security and efficacy of its protocol.
Sensible contract safety and auditing agency Dedaub introduced that it had acquired a bug bounty after flagging a vulnerability within the Common Router good contract that will have allowed reentrancy to empty person funds mid-transaction.
The Dedaub crew has disclosed a Important vulnerability to the Uniswap crew!
Funds are protected – Uniswap addressed the problem and redeployed the Common Router good contracts on all its chains
The vulnerability permits re-entertrancy to empty the person’s funds, mid-tx.
— Dedaub (@dedaub) January 2, 2023
In accordance with Dedaub’s breakdown, the Common Router permits customers to carry out numerous actions together with swapping a number of tokens and NFTs in a single transaction.
The router embeds a scripting language for all kinds of token actions, which might embody transfers to 3rd social gathering recipients. If accurately carried out, transfers would go to the recipient inside specified parameters.
Associated: Immunefi says it has facilitated $66M in bug bounties since inception
Nonetheless, Dedaub recognized a vulnerability during which a third-party code was invoked through the switch, permitting the code to re-enter the Common Router and declare any tokens that have been quickly within the contract.
Dedaub then instructed a straight-forward treatment, advising the Uniswap crew so as to add a reentrancy lock to the core execution of the brand new router. Uniswap awarded the auditing agency a complete of $40,000 for flagging the vulnerability. The quantity included a 33% bonus for reporting the problem throughout Uniswap’s bonus interval in November 2022.
Uniswap categorized the problem as medium severity, whereas additional evaluation deemed the vulnerability to have excessive affect and low probability. In accordance with Dedaub, the potential for a person sending NFTs to an untrusted recipient straight was thought of person error.
Extra complicated and fewer doubtless situations have been thought of legitimate for reentrancy, which resulted in Uniswap deeming the vector to have a low probability. Cointelegraph has reached out to Uniswap to establish additional particulars of its ongoing bounty program, quantities paid out and the variety of bugs recognized thus far.
Bug bounties have turn into commonplace within the cryptocurrency and blockchain house as platforms and firms look to make sure the safety of their software program, techniques and infrastructure.
Cryptocurrency alternate Coinbase not too long ago clarified the phrases of its bug bounty, whereas blockchain safety agency Immunefi has facilitated over $65 million price of bug bounties between moral hackers and Web3 companies in 2022.