KryptoniteDAO / krp-cdp-contracts

Kryptonite stable coin kUSD relevant contracts
0 stars 0 forks source link

Arbitrary minting of coins using fake CW20 tokens #4

Closed smithmonnnnnnn closed 11 months ago

smithmonnnnnnn commented 11 months ago

Description: In the mint_stable_coin function from custody contract, there is no validation about the info.sender. As a consequence, anyone could call this function to mint coins to himself/herself using a fake CW20 token. Code Localtion: krp-cdp-contracts/contracts/custody/src/contract.rs#L274-312