Skip to content

Sherlock

Goat Trading

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

disclosed reports
7
most reported class
Business logic
bug classes found
2
first disclosure
2024
Find Goat Trading on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Goat Trading chose to make public.

DoS

It's possible to create pairs that cannot be taken over

The createPair function does not validate initial parameters, allowing an attacker to set values that cause an overflow in takeOverPool, making the pair impossible to take over and permanently denying service.

Goat Trading

Medium
Business logic

Legitimate pools can be taken over and the penalty is not fair

The takeOverPool function lacks a check on the virtual Ether amount, allowing a malicious user to take over a legitimate pool without cost by increasing virtual Ether. The original liquidity provider then unfairly pays a 5% penalty.

Goat Trading

Medium
Business logic

Some unusual problems arise in the use of the `GoatV1Factory.sol#createPair()` function

The router's addLiquidity function calculates token amounts using virtual reserves, but the pair's mint function expects a different token amount, causing a revert unless the initial liquidity provider pays an amount of WETH equal to bootstrapEth. An attacker can front-run the addLiquidity call by creating the pair first, forcing the initial LP to pay more.

Goat Trading

Medium
Business logic

Liquidity provider fees can be stolen from any pair

The pair contract fails to update fee tracking when liquidity tokens are transferred to the pair itself, leaving a fee variable at zero. An attacker can transfer liquidity tokens to the pair and then call a permissionless fee withdrawal function on behalf of the pair, stealing pending liquidity provider fees.

Goat Trading

High
Business logic

Initial Liquidity provider can bypass the withdrawal limit

The initial liquidity provider can bypass the 25% weekly withdrawal limit because the check is skipped when only one withdrawal remains, allowing them to withdraw all remaining liquidity at once. This enables a rug pull, harming other users.

Goat Trading

Medium
Business logic

The router is not compatible with fee on transfers tokens

The router contract does not correctly handle tokens that charge a fee on transfer, so when removing liquidity the recipient receives less than the expected amount and the transaction may revert or cause loss of funds. The router also charges double fees in some functions because tokens are transferred twice.

Goat Trading

Medium