code-423n4 / 2021-11-vader-findings

0 stars 0 forks source link

setComponents function specs and logic mismatch #262

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

hack3r-0m

Vulnerability details

https://github.com/code-423n4/2021-11-vader/blob/main/contracts/tokens/Vader.sol#L145 says function should be only callable by the deployer.

while in the following scenario:

X is not a deployer but can call setComponents.

Fix the comment or logic to represent the above-mentioned scenario accordingly.

0xstormtrooper commented 2 years ago

We think severity here is 0

alcueca commented 2 years ago

I see no grounds to reduce severity. Either the comment is wrong, or the state handling is wrong. Both are severity 1 issues.

SamSteinGG commented 2 years ago

@alcueca Can you elaborate what type of risk exists from a comment mistake? There is zero impact to the integrity of the protocol as the code behaves as intended, the "deployer" mentioned does not have any special distinction from any owner of the contract logically.