QA Report #160
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
Low/Non-critical Vulnerabilities
Low
Use of deprecated functions
The
ioutil
package is deprecated.os.ReadFile
should be used instead ofioutil.ReadFile
Reference:
Deprecation of ioutil library
The following lines of code are affected:
Open TODOs
Comments in production code should not contain developer discussion or notes about known bugs or problems. These issues should be tracked elsewhere and resolved before being deployed.
Comments of this kind can also indicate potential avenues of attack for an adversary.
The following lines are affected:
Use of dependencies with known vulnerabilities
Packages used by the project are known to contain security vulnerabilities. It is recommended to update these dependencies in order to avoid issues related to these vulnerabilities.
In addition, it is advised to put in place an automated process to flag vulnerable components and fix them during the build process.
The following vulnerable packages are installed:
For more information consult the following resources:
Tendermint GitHub Issue
Go Ethereum security advisory
Open TODOs
Comments in production code should not contain developer discussion or notes about known bugs or problems. These issues should be tracked elsewhere and resolved before being deployed.
Comments of this kind can also indicate potential avenues of attack for an adversary.
The following lines are affected:
Non-critical
Panic used as error handling
Avoid using
panic
in production code. Calls topanic
can reveal sensitive information about the system via the output of stack traces. When errors are not handled in a recoverable way it is possible for the software to reach undefined behaviour or even crash.Instead of using
panic
, incorporate custom errors according to the best practices of the CosmosSDK.More information about custom errors can be found at the following resource:
CosmosSDK: Errors
The use of panic was identified at the following lines in the codebase:
The text was updated successfully, but these errors were encountered: