veRWA - Silverskrrrt's results

Incentivization Primitive for Real World Assets on Canto

General Information

Platform: Code4rena

Start Date: 07/08/2023

Pot Size: $36,500 USDC

Total HM: 11

Participants: 125

Period: 3 days

Judge: alcueca

Total Solo HM: 4

Id: 274

League: ETH

Canto

Findings Distribution

Researcher Performance

Rank: 123/125

Findings: 1

Award: $4.23

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

The _get_sum() and _get_weight() functions in the GaugeController.sol contract contain loops that can run indefinitely if conditions inside don't change as expected. This can cause gas to be consumed indefinitely until the transaction runs out of gas, leading to transaction failures.

Impact: Transactions that interact with these functions can fail, leading to wasted gas fees for users. If these functions are critical for other operations, it can halt the functionality of the entire platform, leading to potential fund lockups and loss of trust.

POC

function _get_sum() internal view returns (uint256 sum) { while(someCondition) { // Some logic here if (anotherCondition) { break; // This might never be reached if 'anotherCondition' is never true } } }

#0 - c4-judge

2023-08-22T14:20:10Z

alcueca marked the issue as grade-b

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter