28875 - [SC - Medium] Unauthorized minting of vested NFTs
Submitted on Feb 29th 2024 at 16:43:28 UTC by @riptide for Boost | ZeroLend
Report ID: #28875
Report type: Smart Contract
Report severity: Medium
Target: https://github.com/zerolend/governance
Impacts:
Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)
Description
Brief/Intro
VestedZeroNFT contract lacks a permissioned modifer for mint() on L63 which allows any user to mint an unlimited amount of VestedZeroNFTs to any address with falsified categories.
Vulnerability Details
Lack of permissioned modifier to a function explicitly specified as protected in the comments.
Impact Details
Low impact other than misrepresenting the VestCategory at will and corrupting any analytics when viewing the collection and stats of the vested NFTs (amounts, cliff times, linear, etc all can be arbitrarily set).