Events should provide meaningful information to enable off-chain applications to monitor contract activity, track user actions, and build comprehensive audit trails.
The SetNewSecret
event contains no fields, making it completely useless for off-chain monitoring. When multiple users set secrets, there's no way to distinguish between events, identify which user performed the action, or correlate events with specific operations.
Likelihood:
Every set_secret
call emits an empty event
Off-chain applications cannot distinguish between events
100% of events provide no useful information
Impact:
No monitoring capability: Off-chain apps cannot track secret operations
Poor audit trails: Cannot correlate events to specific users or actions
Development friction: Developers cannot build meaningful integrations
Debugging difficulty: No event-based debugging or analysis possible
Missing analytics: Cannot track usage patterns or user behavior
The following test demonstrates the empty event vulnerability:
Add meaningful fields to the event:
This is an Informational finding. It has no impact on the security of the protocol.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.