Missing events for critical parameter changing operations by owner
The owner of the TracerPerpetualSwaps contract can change critical parameters such as addresses and values without emitting events. This lack of on-chain logging means off-chain monitors and users cannot detect malicious changes, potentially leading to lost funds and confidence.
Submitted by 0xRajeev
The owner of TracerPerpetualSwaps contract, who is potentially untrusted as per specification, can change the market critical parameters such as the addresses of the Liquidation/Pricing/Insurance/GasOracle/FeeReceiver and also critical values such as feeRate, maxLeverage, fundingRateSensitivity, deleveragingCliff, lowestMaxLeverage, insurancePoolSwitchStage and whitelisting.
None of these setter functions emit events to record these changes on-chain for off-chain monitors/tools/interfaces to register the updates and react if necessary.
The impact of this is that, if a malicious owner changes the critical addresses or values that significantly change the security posture/perception of the protocol. No events are emitted and users lose funds/confidence. The protocol takes a reputation hit.
See similar high-severity finding in OpenZeppelin’s Audit of Audius and medium-severity finding OpenZeppelin’s Audit of UMA Phase 4.
Recommend to consider emitting events when these addresses/values are updated. This will be more transparent and it will make it easier to keep track of the status of the system.
raymogg (Tracer) marked as duplicate of another (confirmed issue):
Duplicate of #66
cemozerr (Judge) reopened and removed duplicate label:
Opening this issue as the event emission seems to be separate from the arbitrarily changing of the values.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The setter functions for critical parameters do not emit events, so changes are not logged on-chain.
Impact
A malicious owner could change critical addresses or values without detection, potentially causing users to lose funds and confidence, and damaging the protocol's reputation.
What the attacker needed
Owner is potentially untrusted
The fix
The setter functions should emit events when critical addresses or values are updated to increase transparency and allow tracking of the system's status.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In blockchain contracts, events are like public announcements that get recorded permanently. Here, the owner can secretly change important settings without any announcement, so users and tools watching the contract won't know. This could let a bad owner quietly make changes that harm users.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.