Submitted by Czar102, also found by 0x1f8b and SolidityScan
BribeVault.sol#L164-L205
depositBribeERC20 function in BriveVault is reentrant in line 187, where an address supplied by the caller is called.
A bad actor that has DEPOSITOR_ROLE and is a contract can execute a folowing attack:
Thus, an attacker can grant any amount of tokens from BriveVault to a certain bribe, stealing all the funds once the bribe will be withdrawn.
Set bribe token before the transfer is made.
Alex the Entreprenerd (judge) decreased severity to Medium and commented:
