Frankencoin - anodaram'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: 102/199

Findings: 2

Award: $22.67

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-04-frankencoin/blob/1022cb106919fba963a89205d3b90bf62543f68f/contracts/Equity.sol#L313

Vulnerability details

Impact

In Equity.restructureCapTable, there is a for loop iterating i. Inside that, it refers addressesToWipe[0]. But actually it should be addressesToWipe[i].

Proof of Concept

No meaning if the function calls _burn for the same address multiple times. I think this is just the developer's mistake.

Tools Used

VSCode

Original:

File: Equity.sol
313:             address current = addressesToWipe[0];

Fixed:

File: Equity.sol
313:             address current = addressesToWipe[i];

#0 - c4-pre-sort

2023-04-20T14:22:46Z

0xA5DF marked the issue as duplicate of #941

#1 - c4-judge

2023-05-18T14:27:33Z

hansfriese marked the issue as satisfactory

#2 - c4-judge

2023-05-18T14:32:26Z

hansfriese changed the severity to 2 (Med Risk)

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