MaslarovK - 'hashProposal' function will lead to wrong hash due to a wrong questionId
type in the abi.encode
#303
Labels
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
MaslarovK
Medium
'hashProposal' function will lead to wrong hash due to a wrong
questionId
type in the abi.encodeSummary
In the hashProposal function, the
questionId
is set to be uint256, but in the Proposal struct it is set asbytes32
.Root Cause
No response
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
This will lead to wrong hash being generated dues to
uint256
being interpret in a different way compared tobytes32
.PoC
No response
Mitigation
Change the
hashProposal
function as follows:The text was updated successfully, but these errors were encountered: