Closed sherlock-admin4 closed 4 months ago
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
Reputer and workers info can be overwritten via LibP2PKey
The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/458
volodya
High
anyone can rewrite reputer data and worker data
Summary
anyone can rewrite reputer data and worker data
Vulnerability Detail
Whenever users would like to register workers or reputer they call
Register
withmsg.LibP2PKey
that is visible to anyone on chain./msg_server_registrations.go#L43 There is a call to insert it into collection with
reputerInfo.LibP2PKey
, so anyone can rewrite with their own data. The same thing withInsertWorker
emissions/keeper/keeper.go#L1432
Impact
reputer/worker data can be compromised
Code Snippet
Tool used
Manual Review
Recommendation
This seems to be safe
Duplicate of #111