This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
maushish - Lack of proper cross-chain EIP-712 parameters could lead to wrong edges getting acknowledged. #415
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
Sponsor Disputed
The sponsor disputed this issue's validity
Won't Fix
The sponsor confirmed this issue will not be fixed
maushish
medium
Lack of proper cross-chain EIP-712 parameters could lead to wrong edges getting acknowledged.
Summary
In the current implementation of
checkSignature
modifier there is no involvement ofchain-id
,nonce
parameters due to which malicious actor could replay a signature and either unacknowledge or acknowledge an edge.Vulnerability Detail
As clearly mentioned in the
readme
fileThe current implementation of
checkSignature
follows a modified version of EIP-712https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/graph/TitlesGraph.sol#L40
Because the chain ID is not included in the data, all signatures are also valid when the project is launched on a chain with another chain ID.
Signature without chain-id, nonces are not safe along with the standard specified in EIP 712.
Impact
Mentioned in the summary.
Code Snippet
Tool used
Manual Review
Recommendation
Implement the use of
nonce
andchain-id
incheckSignature
modifier.The text was updated successfully, but these errors were encountered: