Skip to content

Sherlock

WOOFi Swap on Solana

Every publicly disclosed report for WOOFi Swap on Solana and what kind of bugs they were.

disclosed reports
5
most reported class
Access control
bug classes found
3
first disclosure
2024
Find WOOFi Swap on Solana on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what WOOFi Swap on Solana chose to make public.

Access control

Missing permission control in create_oracle and create_pool

The create_wooracle and create_pool instructions lacked checks that the signer was the WooConfig authority, allowing anyone to create an oracle and then a pool using that oracle. An attacker could pre-empt the real admin from creating an oracle for a token pair and potentially manipulate prices to steal funds, though the protocol team disputed the price manipulation impact.

WOOFi Swap on Solana

Medium
Access control

An admin authority initializing RebateInfo will make claim_rebate_fee unusable

A constraint in the claim_rebate_fee instruction requires the rebate_info authority to equal the rebate_manager authority, which is false when an admin authority initialised the rebate_info. This prevents the rebate authority from claiming their rebate fee, causing a 100% loss of those fees.

WOOFi Swap on Solana

Medium
Business logic

State changes are overwritten during anchor serialization when two accounts are the same

When a swap passes the same account for two of the three pool parameters, Anchor serialises the account twice and the second write overwrites the first, so one of the reserve updates is lost. This leaves the quote pool's reserve value incorrect, which can block valid swaps or prevent the admin from claiming fees.

WOOFi Swap on Solana

Medium