tx.origin to determine the owner authorization is prone to attacks.tx.origin to check the owner ,but this should not be in access control logic. Solidity docs clearly mentions this "Never use tx.origin for authorization",as it is prone to phishing attacks from malicious users. They can create a malicious attack contract to interact with the owner contract and use the interaction to get authorization to the set the PerpVault.javascript
msg.sender instead of tx.origin to determine owner authorization.Lightchaser: Medium-5
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.