The pool owner can claim all unclaimed_fee that has accrued in the pool, resulting in no protocol fee
Summary
The ClaimFee struct in claim_fee.rs is designed to allow the pool owner to act as the fee claimer. This enables the pool owner to claim all unclaimed_fee accrued in the pool, leaving no protocol fee.
Root Cause
As indicated in claim_fee.rs:16, the pool owner (woopool.authority) can serve as the claimer (pub authority: Signer<'info>). This means that the pool owner can claim all unclaimed_fee accrued in the pool, resulting in no protocol fee.
Formal Charcoal Boa
High
The pool owner can claim all
unclaimed_fee
that has accrued in the pool, resulting in no protocol feeSummary
The
ClaimFee
struct inclaim_fee.rs
is designed to allow the pool owner to act as the fee claimer. This enables the pool owner to claim allunclaimed_fee
accrued in the pool, leaving no protocol fee.Root Cause
As indicated in claim_fee.rs:16, the pool owner (
woopool.authority
) can serve as the claimer (pub authority: Signer<'info>
). This means that the pool owner can claim allunclaimed_fee
accrued in the pool, resulting in no protocol fee.Internal pre-conditions
External pre-conditions
Attack Path
Impact
Pool owners can claim all
unclaimed_fee
accrued in the pool, resulting in no protocol fee.PoC
Mitigation
Can fix as follows.