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

QA Report #93

Open
code423n4 opened this issue Jul 18, 2022 · 1 comment
Open

QA Report #93

code423n4 opened this issue Jul 18, 2022 · 1 comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

Default proof is returned when input is empty

Contract:
DNSSECImpl.sol

Description:

  1. If submitRRSets function is called with an empty list of RRSets then no RRSet gets submitted.
  2. Instead of throwing an error that input is empty, function simply the proof (The DNSKEY or DS) which was passed as argument

Recommendation:
Add below check

require(input.length>0, "No RRSET to submit");

2 step owner change

Contract:
Owned.sol

Description:
The setOwner function directly sets the new owner value passed without checking for 0 address or performing a 2 step change

Recommendation:
Add a zero address change.
Also add 2 step change for Admin which includes pendingAdmin inclusion


Use call instead of transfer

Contract
ETHRegistrarController.sol

Description
It was observed that withdraw function is using transfer function instead of call for transferring ether. This could become a problem if owner is contract and require more than 2300 gas (in which case transfer reverts)

Recommendation
Use call which does not have 2300 gas limitation

@code423n4 code423n4 added bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax labels Jul 18, 2022
code423n4 added a commit that referenced this issue Jul 18, 2022
@jefflau
Copy link
Collaborator

jefflau commented Jul 22, 2022

Duplicate of #133

@jefflau jefflau marked this as a duplicate of #133 Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

2 participants