Ondo Finance contest - 0xjuicer's results

Institutional-Grade Finance. On-Chain. For Everyone.

General Information

Platform: Code4rena

Start Date: 11/01/2023

Pot Size: $60,500 USDC

Total HM: 6

Participants: 69

Period: 6 days

Judge: Trust

Total Solo HM: 2

Id: 204

League: ETH

Ondo Finance

Findings Distribution

Researcher Performance

Rank: 27/69

Findings: 1

Award: $137.62

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: AkshaySrivastav

Also found by: 0xjuicer, Bauer, Tajobin, adriro, csanuragjain, gzeon, immeas, rbserver

Labels

bug
2 (Med Risk)
partial-50
duplicate-187

Awards

137.6239 USDC - $137.62

External Links

Lines of code

https://github.com/code-423n4/2023-01-ondo/blob/main/contracts/cash/kyc/KYCRegistry.sol#L79-L112 https://github.com/code-423n4/2023-01-ondo/blob/main/contracts/cash/kyc/KYCRegistry.sol#L175

Vulnerability details

Impact

A user that should be removed from the KYC list can be added back to the KYCed list using addKYCAddressViaSignature() until the signature expires.

Proof of Concept

  • User submits KYC documents and gets a valid signature
  • User submits the signature to get whitelisted using addKYCAddressViaSignature()
  • Team revokes KYC using removeKYCAddresses
  • User resubmits signature using addKYCAddressViaSignature(), the address will be added back to the whitelist

Tools Used

Manual review

I recommend adding a storing and checking for used signatures to prevent them from being reused. It's also lacking a mechanism to revoke not used signatures.

#0 - trust1995

2023-01-22T15:58:56Z

Very short but good enough since covered the key details and fix would work although not ideal.

#1 - c4-judge

2023-01-22T15:59:06Z

trust1995 marked the issue as duplicate of #187

#2 - c4-judge

2023-01-22T15:59:38Z

trust1995 marked the issue as satisfactory

#3 - c4-judge

2023-02-01T07:53:49Z

trust1995 marked the issue as partial-50

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