Revert Lend - stonejiajia's results

A lending protocol specifically designed for liquidity providers on Uniswap v3.

General Information

Platform: Code4rena

Start Date: 04/03/2024

Pot Size: $88,500 USDC

Total HM: 31

Participants: 105

Period: 11 days

Judge: ronnyx2017

Total Solo HM: 7

Id: 342

League: ETH

Revert

Findings Distribution

Researcher Performance

Rank: 95/105

Findings: 1

Award: $10.29

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

10.2896 USDC - $10.29

Labels

bug
downgraded by judge
grade-b
insufficient quality report
QA (Quality Assurance)
duplicate-229
Q-39

External Links

Lines of code

https://github.com/code-423n4/2024-03-revert-lend/blob/main/src/V3Vault.sol#L423

Vulnerability details

Impact

Permits have built-in replay protection and can be submitted by anyone, they can be frontrun.

openZeppelin suggestion:

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/932fddf69a699a9a80fd2396fd1a2ab91cdda123/contracts/token/ERC20/extensions/IERC20Permit.sol#L16-L32

Tools Used

vsocde

function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
    try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
     doThing(..., value);
 }

function doThing(..., uint256 value) public {
  token.safeTransferFrom(msg.sender, address(this), value);
    ...
}

Assessed type

ERC20

#0 - c4-pre-sort

2024-03-22T16:41:33Z

0xEVom marked the issue as duplicate of #229

#1 - c4-pre-sort

2024-03-22T16:41:36Z

0xEVom marked the issue as insufficient quality report

#2 - c4-judge

2024-03-30T02:09:35Z

jhsagd76 changed the severity to QA (Quality Assurance)

#3 - c4-judge

2024-04-01T09:20:33Z

jhsagd76 marked the issue as grade-a

#4 - c4-judge

2024-04-01T09:20:40Z

jhsagd76 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