Canto Application Specific Dollars and Bonding Curves for 1155s - wisdomn_'s results

Tokenizable bonding curves using a Stablecoin-as-a-Service token

General Information

Platform: Code4rena

Start Date: 13/11/2023

Pot Size: $24,500 USDC

Total HM: 3

Participants: 120

Period: 4 days

Judge: 0xTheC0der

Id: 306

League: ETH

Canto

Findings Distribution

Researcher Performance

Rank: 81/120

Findings: 1

Award: $4.08

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

4.0797 USDC - $4.08

Labels

bug
downgraded by judge
grade-b
QA (Quality Assurance)
duplicate-429
Q-31

External Links

Lines of code

https://github.com/code-423n4/2023-11-canto/blob/335930cd53cf9a137504a57f1215be52c6d67cb3/asD/src/asDFactory.sol#L29

Vulnerability details

Impact

The asdFactory uses tx.origin for turnstile.register(). This goes against solidity best practices and can lead to serious vulnerabilities. The vulnerability lies in the asdFactory's constructor which uses tx.origin for turnstile.register()

if (block.chainid == 7700 || block.chainid == 7701) { // Register CSR on Canto main- and testnet Turnstile turnstile = Turnstile(0xEcf044C5B4b867CFda001101c617eCd347095B44); turnstile.register(tx.origin); }

Tools Used

Manual Review

Avoid using tx.origin to prevent vulnerabilities and attacks.

Assessed type

Error

#0 - c4-pre-sort

2023-11-20T02:24:35Z

minhquanym marked the issue as duplicate of #429

#1 - c4-judge

2023-11-29T16:01:41Z

MarioPoneder changed the severity to QA (Quality Assurance)

#2 - c4-judge

2023-11-29T21:15:52Z

MarioPoneder 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