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 #238

Open
code423n4 opened this issue Aug 6, 2022 · 0 comments
Open

QA Report #238

code423n4 opened this issue Aug 6, 2022 · 0 comments
Labels
bug Something isn't working edited-by-warden QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax valid

Comments

@code423n4
Copy link
Contributor

code423n4 commented Aug 6, 2022

HomeFi the setAddr function Admin will not be able to reset the variables to new addresses should something happen and the address needs to be updated.

Recommendation:
Allow admin to set the addresses under certain circumstances. Perhaps through a DAO vote.

HomeFi setTrustedForwarder function doesn’t prevent the address from being set to address(0).

Recommendation:
Use the nonZero modifier when setting addresses

Project initialize function doesn’t prevent addresses from being set to address(0).

Recommendation:
Check addresses to make sure they aren’t the zero address.

checkSignatureValidity:

Anyone can use other callers approvedHashes.

For example, the Community contracts’ escrow function. An operator waits until the builder and lender both call approveHash. If they do not use it immediately an operator could use it for them in a grief attack.

Recommendation:
Remove the approvedHashes mapping and rely solely on the _recoveredSignature.

@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 Aug 6, 2022
code423n4 added a commit that referenced this issue Aug 6, 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 edited-by-warden QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax valid
Projects
None yet
Development

No branches or pull requests

2 participants