While the protocol enforces a minLicenseFee, there is no concept of a maxLicenseFee in the protocol that prevents greedy publishers from charging an absurd licensing fee for using the protocol. A maxLicenseFee will help protect users against greedy publishers.
Handle
0xRajeev
Vulnerability details
Impact
While the protocol enforces a minLicenseFee, there is no concept of a maxLicenseFee in the protocol that prevents greedy publishers from charging an absurd licensing fee for using the protocol. A maxLicenseFee will help protect users against greedy publishers.
Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Factory.sol#L29
Tools Used
Manual Analysis
Recommended Mitigation Steps
Consider a protocol maxLicenseFee to protect users against greedy publishers.