-
Notifications
You must be signed in to change notification settings - Fork 0
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 #145
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
added
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
labels
Feb 9, 2022
Dup of #165 |
JeeberC4
added
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
and removed
duplicate
This issue or pull request already exists
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
labels
Apr 21, 2022
Generating QA Report as warden did not have one and judge downgraded issue. Preserving original title: Unchecked transfers |
1 finding |
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
Lines of code
https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/ConvexStakingWrapper.sol#L182
Vulnerability details
Impact
There are calls to ERC20 transfer, where
safeTransfer
should be used instead. Some ERC20 compliant tokens may not revert on failure and instead return false. The use ofsafeTransfer
will mitigate this issue. For more reference, see this medium severity finding of the same issue on a previous C4 contest: code-423n4/2021-11-bootfinance-findings#31.Proof of Concept
See example of unchecked transfer here.
Tools Used
Inspection.
Recommended Mitigation Steps
Use
safeTransfer
instead oftransfer
.The text was updated successfully, but these errors were encountered: