Holograph contest - 8olidity's results

Omnichain protocol for deploying, minting, & bridging NFTs between blockchains.

General Information

Platform: Code4rena

Start Date: 18/10/2022

Pot Size: $75,000 USDC

Total HM: 27

Participants: 144

Period: 7 days

Judge: gzeon

Total Solo HM: 13

Id: 170

League: ETH

Holograph

Findings Distribution

Researcher Performance

Rank: 58/144

Findings: 1

Award: $55.67

QA:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2022-10-holograph/blob/main/contracts/HolographFactory.sol#L320-L335

Vulnerability details

Impact

A verifier with a signature address of zero is not rejected. Anyone is allowed to sign

Proof of Concept

// contracts/HolographFactory.sol function _verifySigner( bytes32 r, bytes32 s, uint8 v, bytes32 hash, address signer ) private pure returns (bool) { if (v < 27) { v += 27; } /** * @dev signature is checked against EIP-191 first, then directly, to support legacy wallets */ return (ecrecover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)), v, r, s) == signer || ecrecover(hash, v, r, s) == signer); }

Tools Used

vscode

check singer != address(0)

#0 - gzeoneth

2022-10-30T15:27:12Z

Duplicate of #357

#1 - gzeoneth

2022-11-21T07:14:29Z

As QA report

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