Submitted by berndartmueller, also found by 0xA5DF, arcoun, rotcivegaf, and wastewa
Project.sol#L498-L502
SignatureDecoder.sol#L25
Disputes enable an actor to arbitrate & potentially enforce requested state changes. However, the current implementation does not properly implement authorization, thus anyone is able to create disputes and spam the system with invalid disputes.
Calling the Project.raiseDispute function with an invalid _signature, for instance providing a _signature with a length of 66 will return address(0) as the recovered signer address.
Project.raiseDispute
SignatureDecoder.sol#L25
If _task is set to 0 and the project does not have a contractor, the require checks will pass and IDisputes(disputes).raiseDispute(_data, _signature); is called. The same applies if a specific _task is given and if the task has a subcontractor. Then the check will also pass.
Project.raiseDispute
Consider checking the recovered signer address in Project.raiseDispute to not equal the zero-address:
parv3213 (Rigor) confirmed
