Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events missing for critical actions of owner
 #46

Closed
code423n4 opened this issue Jun 30, 2021 · 1 comment
Closed

Events missing for critical actions of owner
 #46

code423n4 opened this issue Jun 30, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists invalid This doesn't seem right

Comments

@code423n4
Copy link
Contributor

Handle

0xRajeev

Vulnerability details

Impact

Tracer Perpetuals Factory has six functions that are onlyOwner() and change deployer contract addresses and market approvals. None of these emit events for off-chain monitoring of such critical actions.

Impact: Users (via front-end UIs) and Off-chain monitoring tools rely on events to gain visibility into any sensitive actions by the contract owner which may affect the security and trust in the project contracts. Without events, the owner in this case the Tracer DAO, may change any of the addresses/approvals without providing transparency to off-chain entities.

Proof of Concept

https://github.com/code-423n4/2021-06-tracer/blob/74e720ee100fd027c592ea44f272231ad4dfa2ab/src/contracts/TracerPerpetualsFactory.sol#L63-L68

https://github.com/code-423n4/2021-06-tracer/blob/74e720ee100fd027c592ea44f272231ad4dfa2ab/src/contracts/TracerPerpetualsFactory.sol#L119-L149

Tools Used

Manual Analysis

Recommended Mitigation Steps

Add and emit relevant events.

@code423n4 code423n4 added 2 (Med Risk) bug Something isn't working labels Jun 30, 2021
code423n4 added a commit that referenced this issue Jun 30, 2021
@raymogg raymogg added the duplicate This issue or pull request already exists label Jul 5, 2021
@raymogg
Copy link
Collaborator

raymogg commented Jul 5, 2021

Duplicate of #77

Again this could be considered not exactly the same, however the premise is the same that events aren't emitted on certain function calls. Having the event does not change the behaviour of the system, it only affects how users interact with it off chain and as such similar to the linked ticket is probably a low risk.

Changes to the deployer also occur via DAO proposals and as such will be fully transparent before they occur.

@raymogg raymogg closed this as completed Jul 7, 2021
@ninek9 ninek9 added invalid This doesn't seem right and removed 2 (Med Risk) labels Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants