BathHouse
admin and RubiconMarket
owner can grief with high fees
#307
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/RubiconMarket.sol#L1231-L1234
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L261
Vulnerability details
Impact
The
BathHouse
admin and an authorizedRubiconMarket
owner can set any high fee valuefeeBPS
. Setting a fee value> 10000
(10000
is used as a denominator) will cause DoS.Proof of Concept
RubiconMarket.sol#L1231-L1234
rubiconPools/BathToken.sol#L261
Tools Used
Manual review
Recommended mitigation steps
Consider adding a reasonable upper bound for
feeBPS
.The text was updated successfully, but these errors were encountered: