Skip to content

Sherlock

Harpie

Every publicly disclosed report for Harpie and what kind of bugs they were.

disclosed reports
9
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Harpie on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Harpie chose to make public.

Crypto

Cross-chain replay attacks are possible with `changeRecipientAddress()`

The signed data for changing a recipient address did not include the chain ID, so a signature intended for one network could be replayed on another. An attacker could replay a user's mistaken cross-chain action to redirect funds to an address they control.

Harpie

Medium
DoS

Usage of deprecated transfer() can result in revert

The withdrawPayments() function uses transfer() to send Ether, which forwards a fixed 2300 gas stipend. If the recipient is a contract whose fallback or receive function needs more gas, or is called via a proxy, the transfer reverts and the owner cannot withdraw fees.

Harpie

Medium
Race condition

Nonces not used in signed data

The signature verification in a smart contract vault did not include a nonce, so two signed transactions could be reordered by a malicious miner. This could cause an insecure recipient address to take effect instead of a later secure one, allowing the attacker to transfer funds.

Harpie

Medium
Business logic

Incompatability with deflationary / fee-on-transfer tokens

The vault recorded the nominal amount of an incoming ERC20 transfer rather than the amount actually received, so with fee-on-transfer tokens the ledger overstated balances. A user withdrawing could drain more than their real share, leaving later users unable to withdraw.

Harpie

Medium
Crypto

Signature malleability not protected against

The project used a vulnerable version of OpenZeppelin's ECDSA library that allowed signature malleability, enabling an attacker to replay a previously signed change-recipient request. This could let an attacker revert a user's corrected recipient address back to a compromised one, potentially causing loss of funds.

Harpie

Medium
Business logic

There is no limit on the amount of fee users have to pay

The smart contract allowed an approved caller to set an arbitrarily high withdrawal fee, so users could be forced to pay excessive fees to retrieve their funds. A malicious protocol could set the fee so high that users cannot withdraw at all.

Harpie

Medium
Smart contracts

Unsafe casting of user amount from `uint256` to `uint128`

The contract stores a user's recovered token amount in a uint128 variable, but the amount is a uint256, so casting it can truncate the value. An attacker could cause the recorded amount to be less than the actual amount, leading to loss of funds.

Harpie

Medium