Frankencoin - Mukund's results

A decentralized and fully collateralized stablecoin.

General Information

Platform: Code4rena

Start Date: 12/04/2023

Pot Size: $60,500 USDC

Total HM: 21

Participants: 199

Period: 7 days

Judge: hansfriese

Total Solo HM: 5

Id: 231

League: ETH

Frankencoin

Findings Distribution

Researcher Performance

Rank: 183/199

Findings: 1

Award: $0.07

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-04-frankencoin/blob/main/contracts/Equity.sol#L309-L318

Vulnerability details

Impact

function won't work correctly and will not be able to burn all addressesToWipe it will only burn 0 index.

Proof of Concept

in function restructureCapTable for loop is meant to loop through addressesToWipe but failed to do so it should be i instead of 0, only the 0 index will burn .

function restructureCapTable(address[] calldata helpers, address[] calldata addressesToWipe) public { require(zchf.equity() < MINIMUM_EQUITY); checkQualified(msg.sender, helpers); for (uint256 i = 0; i<addressesToWipe.length; i++){ address current = addressesToWipe[0]; //@audit should be i instead of 0 _burn(current, balanceOf(current)); } }

Tools Used

vs code

should use i instead of 0 address current = addressesToWipe[i]

#0 - c4-pre-sort

2023-04-20T14:27:28Z

0xA5DF marked the issue as duplicate of #941

#1 - c4-judge

2023-05-18T14:26:08Z

hansfriese marked the issue as satisfactory

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