Amun contest - robee's results

We build tokens to make it easy to invest in crypto.

General Information

Platform: Code4rena

Start Date: 13/12/2021

Pot Size: $75,000 USDC

Total HM: 11

Participants: 30

Period: 7 days

Judge: leastwood

Total Solo HM: 4

Id: 68

League: ETH

Amun

Findings Distribution

Researcher Performance

Rank: 7/30

Findings: 4

Award: $3,016.24

🌟 Selected for report: 5

πŸš€ Solo Findings: 0

Findings Information

🌟 Selected for report: pmerkleplant

Also found by: WatchPug, certora, hyh, p4st13r4, pauliax, robee

Labels

bug
duplicate
2 (Med Risk)

Awards

228.0947 USDC - $228.09

External Links

Handle

robee

Vulnerability details

the balance of outputToken is checked to be exactly a specified value that is not declared in this specific function. Therefore, a malicious user can transfer to the contract address tiny amount of tokens and the user transactions will always revert.

Potential DoS in SingleTokenJoin.sol, 134 Potential DoS in SingleTokenJoinV2.sol, 129

#0 - 0xleastwood

2022-01-23T03:40:31Z

Duplicate of #81

Findings Information

🌟 Selected for report: gpersoon

Also found by: kenzo, robee

Labels

bug
duplicate
2 (Med Risk)
sponsor confirmed

Awards

811.1888 USDC - $811.19

External Links

Handle

robee

Vulnerability details

the deadline is the timestamp after which the transaction will revert. the goal of this field is that the caller can set a deadline for the transaction so the transaction will not succeed in any arbitrary time in the future, and after this deadline, they can resubmit the transaction:https://help.uniswap.org/en/articles/5455497-my-transaction-has-been-pending-for-a-long-time-what-can-i-do#:~:text=Wait%20%E2%80%94%20the%20Uniswap%20interface%20has,you%20can%20resubmit%20your%20transaction.The problem is that the transaction will always occur at block.timestamp so setting the deadline to be block.timestamp + x minutes won't have any effect.therefore the transaction can still run in an arbitrary time in the future. block.timestamp is confused with the time the transaction was submitted. practically, the transaction doesn't have a deadline.

SingleNativeTokenExitV2.sol: swapExactTokensForTokens( IERC20(swap.path[0]).balanceOf(address(this)), 0, swap.path, address(this), block.timestamp ) SingleTokenJoinV2.sol: swapExactTokensForTokens( amountIn, 0, swap.path, address(this), block.timestamp )

#0 - 0xleastwood

2022-01-22T03:57:39Z

Duplicate of #47

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