Lack of sanity checks for new plugin address in `addPlugin()`
The addPlugin() function in a vault contract did not validate the address of a new plugin, so an incorrect or duplicate address could be registered. This could break deposit and withdraw functions, or cause the vault to double-count a plugin's balance, giving depositors too few shares and withdrawers too many tokens.
Mycelium
Medium