Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 2.79 KB

NounsDescriptorV3AuditReport0x52.md

File metadata and controls

29 lines (17 loc) · 2.79 KB

NounsDescriptorV3 Audit Report

Reviewed by: 0x52 (@IAm0x52)

Review Date(s): 8/22/24 - 8/24/24


0x52 Background

As an independent smart contract auditor I have completed over 100 separate reviews. I primarily compete in public contests as well as conducting private reviews (like this one here). I have more than 30 1st place finishes (and counting) in public contests on Code4rena and Sherlock. I have also partnered with SpearbitDAO as a Lead Security researcher. My work has helped to secure over $1 billion in TVL across 100+ protocols.


Scope

The following contracts were reviewed as replacements for the nounsDAO contract suite:


Summary of Changes

NounsArt.sol and NounsDescriptorV3.sol were changed to allow the NounsDAO executor to update existing traits with new artwork. A suite of updateTrait and updateTraitFromPointer functions were added to NounsDescriptorV3.sol along with corresponding functions on NounsArt.sol. The motivation is to allow traits that are not displaying correct to be fixed via a governance proposal.


Summary of Review

The code first underwent manual review. This was to identify all flows across the nounsDAO suite that would be altered by the proposed changes. Only cosmetic flows were altered and changes present no risk to core functionality such as minting or governance. Secondary manual review was completed to evaluate any structural security concerns raised by these changes. The functions added were derived from the existing functions used to add additional traits. State-altering functions such as addPage were reused rather than remade, which is a security best practice. The worst security outcomes stem from incorrect trait counts. The addition of the trait length checks before and after updating completely eliminate this form of input error. Contracts were subsequently fork tested to confirm desired functionality and access control were working as intended.

No security concerns have been raised by this review