0% found this document useful (0 votes)
18 views10 pages

Hyper Inu Token Security Audit Report

The report summarizes a security audit of the Hyper Inu (HPE) token smart contract on the Binance Smart Chain. Two low severity issues were identified: 1) lack of increaseAllowance and decreaseAllowance functions, and 2) decimals uses uint256 instead of the standard uint8. No medium or high severity issues were found. The audit followed standard procedures including automated analysis with tools and manual review.

Uploaded by

Ernest SUNDAY
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views10 pages

Hyper Inu Token Security Audit Report

The report summarizes a security audit of the Hyper Inu (HPE) token smart contract on the Binance Smart Chain. Two low severity issues were identified: 1) lack of increaseAllowance and decreaseAllowance functions, and 2) decimals uses uint256 instead of the standard uint8. No medium or high severity issues were found. The audit followed standard procedures including automated analysis with tools and manual review.

Uploaded by

Ernest SUNDAY
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Smart contracts

security assessment
Final report
Tariff: Standard

Hyper Inu (HPE)


November 2021

[Link] hello@[Link]
Hyper Inu (HPE) Security assessment

Contents

1. Introduction 3
2. Contracts checked 3
3. Procedure 3
4. Known vulnerabilities checked 4
5. Classification of issue severity 5
6. Issues 5
7. Conclusion 7
8. Disclaimer 8
9. Slither check output 9

November 2021 2
Hyper Inu (HPE) Security assessment

Introduction

The report has been prepared for Hyper Inu (HPE) token.

Name Hyper Inu (HPE)


Audit date 2021-11-01 - 2021-11-01
Language Solidity
Platform Binance Smart Chain

Contracts checked

Name Address
Token [Link]
6cED9fd12bA54f6d07bF850

Procedure

We perform our audit according to the following procedure:

Automated analysis

Scanning the project's smart contracts with several publicly available automated Solidity
analysis tools
Manual verification (reject or confirm) all the issues found by the tools

Manual audit

Manually analyse smart contracts for security vulnerabilities


Smart contracts' logic check

November 2021 3
Hyper Inu (HPE) Security assessment

Known vulnerabilities checked

Title Check result

Unencrypted Private Data On-Chain passed

Code With No Effects passed

Message call with hardcoded gas amount passed

Typographical Error passed

DoS With Block Gas Limit passed

Presence of unused variables passed

Incorrect Inheritance Order passed

Requirement Violation passed

Weak Sources of Randomness from Chain passed


Attributes

Shadowing State Variables passed

Incorrect Constructor Name passed

Block values as a proxy for time passed

Authorization through [Link] passed

DoS with Failed Call passed

Delegatecall to Untrusted Callee passed

Use of Deprecated Solidity Functions passed

Assert Violation passed

State Variable Default Visibility passed

Reentrancy passed

Unprotected SELFDESTRUCT Instruction passed

Unprotected Ether Withdrawal passed

Unchecked Call Return Value passed

November 2021 4
Hyper Inu (HPE) Security assessment

Floating Pragma passed

Outdated Compiler Version passed

Integer Overflow and Underflow passed

Function Default Visibility passed

Classification of issue severity

High severity High severity issues can cause a significant or full loss of funds, change
of contract ownership, major interference with contract logic. Such issues
require immediate attention.

Medium severity Medium severity issues do not pose an immediate risk, but can be
detrimental to the client's reputation if exploited. Medium severity issues
may lead to a contract failure and can be fixed by modifying the contract
state or redeployment. Such issues require attention.

Low severity Low severity issues do not cause significant destruction to the contract's
functionality. Such issues are recommended to be taken into
consideration.

Issues

High severity issues

No issues were found

Medium severity issues

No issues were found

November 2021 5
Hyper Inu (HPE) Security assessment

Low severity issues

1. Lack of increaseAllowance and decreaseAllowance functions (Token)

There is a known frontrun attack on approve/transferFrom methods.

Recommendation: We recommend adding increaseAllowance and decreaseAllowance functions to


atomically change allowance.

2. Decimals use uint256 instead of uint8 (Token)

ERC20 and BEP20 standard require decimals() function to return uint8, but token returns uint256.

November 2021 6
Hyper Inu (HPE) Security assessment

Conclusion

Hyper Inu (HPE) Token contract was audited. 2 low severity issues were found.

November 2021 7
Hyper Inu (HPE) Security assessment

Disclaimer

This report is subject to the terms and conditions (including without limitation, description of services,
confidentiality, disclaimer and limitation of liability)set forth in the Services Agreement, or the scope of
services, and terms and conditions provided to the Company in connection with the Agreement. This
report provided in connection with the Services set forth in the Agreement shall be used by the
Company only to the extent permitted under the terms and conditions set forth in the Agreement. This
report may not be transmitted, disclosed, referred to or relied upon by any person for any purposes
without 0xGuard prior written consent.

This report is not, nor should be considered, an “endorsement” or “disapproval” of any particular
project or team. This report is not, nor should be considered, an indication of the economics or value
of any “product” or “asset” created by any team or project that contracts 0xGuard to perform a
security assessment. This report does not provide any warranty or guarantee regarding the absolute
bug-free nature of the technology analyzed, nor do they provide any indication of the technologies
proprietors, business, business model or legal compliance.

This report should not be used in any way to make decisions around investment or involvement with
any particular project. This report in no way provides investment advice, nor should be leveraged as
investment advice of any sort. This report represents an extensive assessing process intending to
help our customers increase the quality of their code while reducing the high level of risk presented
by cryptographic tokens and blockchain technology.

November 2021 8
Hyper Inu (HPE) Security assessment

Slither check output

INFO:Detectors:

transfer(address,uint256) should be declared external:

- [Link](address,uint256) (contracts/[Link]#31-37)

transferFrom(address,address,uint256) should be declared external:

- [Link](address,address,uint256) (contracts/[Link]#39-47)

approve(address,uint256) should be declared external:

- [Link](address,uint256) (contracts/[Link]#49-53)

allowance(address,address) should be declared external:

- [Link](address,address) (contracts/[Link]#55-57)

Reference: [Link]
be-declared-external

INFO:Slither:contracts/[Link] analyzed (1 contracts with 75 detectors), 6 result(s) found

INFO:Slither:Use [Link] to get access to additional detectors and Github integration

November 2021 9

Common questions

Powered by AI

The issue of the decimals function returning uint256 instead of uint8 for the Hyper Inu (HPE) token is considered low severity because it does not directly affect the security or fundamental functionality of the contract. However, it goes against the ERC20 and BEP20 standards, which prescribe that the decimals() function should indeed return uint8. While this misalignment with standards may not immediately threaten security, it could lead to compatibility issues or undermine the standardization expected in blockchain contracts .

Changing the visibility of functions from public to external for the Hyper Inu (HPE) token can optimize gas usage and improve execution efficiency. Public functions are callable both externally and internally, potentially leading to higher gas costs due to the unnecessary creation of a function selector in the contract's bytecode. External functions, on the other hand, are designed to be called only from outside the contract, which can reduce the associated gas cost since it avoids these bytecode complexities, thus making the contract more efficient .

Manual verification plays a crucial role in the Hyper Inu (HPE) security assessment by ensuring the authenticity and accuracy of detected issues. While automated tools can scan contracts quickly, they often result in false positives or overlook context-driven vulnerabilities. Manual verification involves experts reviewing the findings to confirm or reject automated scan results, providing a nuanced and comprehensive assessment. This process significantly enhances the audit's reliability, ensuring that findings are valid and issues specific to the particular nuances of smart contract code are not missed .

The absence of detected vulnerabilities related to mission-critical features suggests that the Hyper Inu (HPE) token contract likely has a robust design integrity. This implies that core functionalities have been implemented with sufficient attention to detail and adherence to security best practices, effectively mitigating standard vulnerabilities typically associated with smart contracts. Such findings are indicative of a well-considered design approach, reducing the likelihood of major rework or emergency interventions post-deployment .

The 'increaseAllowance' and 'decreaseAllowance' functions are significant as they mitigate the known vulnerability of a frontrun attack on 'approve/transferFrom' methods. In the Hyper Inu (HPE) token audit, it was noted that the absence of these functions could allow for such attacks, where a third party could manipulate transaction timing to exploit the approval mechanism. Implementing 'increaseAllowance' and 'decreaseAllowance' makes the changing of allowance amounts atomic, thereby reducing the risk of this type of attack .

Not detecting any high severity issues during the audit implies that the Hyper Inu (HPE) token contract is free from security flaws with the potential to cause significant harm, such as loss of funds, unauthorized contract control, or disruption to the core contract logic. This results in decreased emergency responses and maintenance costs for the developers, suggesting a well-structured contract that aligns with industry practices to mitigate critical risks .

Authorization through tx.origin is a particularly dangerous vulnerability compared to other risks because it involves the misuse of EVM (Ethereum Virtual Machine) concepts in determining the origin of a transaction. It can allow hackers to perform actions on behalf of users trusting tx.origin-based permission checks. In the Hyper Inu (HPE) audit, this vulnerability was present but successfully passed, indicating no issue related to it was found in the contract. However, it generally requires more caution compared to other medium or low-severity vulnerabilities given its potential to facilitate unauthorized actions by attackers if not properly handled .

Severity classification in identified issues provides a structured approach to prioritize and manage risks efficiently. For the Hyper Inu (HPE) token contract, such classification allows developers to focus resources and efforts on addressing the most impactful vulnerabilities first, thus preventing catastrophic failures. Low severity issues can be documented and slated for future revisions. This hierarchical management of vulnerabilities facilitates informed decision-making in maintenance schedules, ensuring that the most crucial problems do not remain unaddressed while fostering ongoing improvement through regular updates .

The Hyper Inu (HPE) audit report includes several legal considerations for external use. It specifies that the report should not be transmitted, disclosed, or used as a basis for endorsement or disapproval without 0xGuard's prior consent. The report is not intended to provide any guarantee of technology being bug-free nor does it reflect the legal compliance or business model evaluation of the audited technology. As such, it cannot be leveraged for investment advice or decisions, adding an additional layer of protection against misuse .

The Hyper Inu (HPE) audit reflects that current Solidity security practices are comprehensive but also highlight areas that need continuous improvement. While no high or medium severity issues were found, indicating effective security practices, the presence of low severity concerns like lack of 'increaseAllowance' and 'decreaseAllowance' functions suggests that standard compliance and protecting against known attack vectors remain a challenge. It underscores the evolving nature of smart contract security where adherence to best practices and continual updates to coding standards are pivotal .

You might also like