Submitted by cyberboy, also found by Meta0xNull
The \__abdicate() function at https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L46-L50 is the logic to remove the governance i.e., to renounce governance. However, the function logic does not consider emergency governor and pending governor, which can be a backdoor as only the gov is set to zero address while the emergency and pending gov remains. A pending gov can just claim and become the gov again, replacing the zero address.
Bug 1
Bug2
Hence the \__abdicate() functionality can be used as a backdoor using emergency governor or leaving a pending governor to claim later.
Remix to test the proof of concept.
The \__abdicate() function should set emergency_gov and pendingGov as well to zero address.
brockelmore (Streaming Protocol) confirmed and disagreed with severity:
0xean (judge) commented:
