Edge Acknowledgment Status Not Persisted in Storage
Summary
The _setAcknowledged function does not correctly update the persistent storage for edge acknowledgment statuses in the TitlesGraph contract.
Vulnerability Detail
The function intended to update the acknowledgment status of an edge fails to write these changes back to the contract’s storage, affecting the integrity of graph data management.
Impact
This is a medium severity issue because it causes the acknowledgment status of edges to not reflect actual updates, potentially leading to incorrect data usage and impacting system integrity.
alexzoid
medium
Edge Acknowledgment Status Not Persisted in Storage
Summary
The
_setAcknowledged
function does not correctly update the persistent storage for edge acknowledgment statuses in theTitlesGraph
contract.Vulnerability Detail
The function intended to update the acknowledgment status of an edge fails to write these changes back to the contract’s storage, affecting the integrity of graph data management.
Impact
This is a medium severity issue because it causes the acknowledgment status of edges to not reflect actual updates, potentially leading to incorrect data usage and impacting system integrity.
Code Snippet
https://github.com/sherlock-audit/2024-04-titles/blob/main/wallflower-contract-v2/src/graph/TitlesGraph.sol#L195-L213
Tool used
Manual Review
Recommendation
Ensure the acknowledgment changes are stored by updating the
edges
mapping at the end of_setAcknowledged
function:Duplicate of #212