Q2 2026 Security & Compliance Report67 incidents, $764M in losses, 88% from operational failures.
Get the report →

Audit name:

[SCA][Re-Audit] Crypto Real Estate | ERC20 | Sep2023

Date:

Sep 22, 2023

Table of Content

→Introduction
→Audit Summary
→Document Information
→System Overview
→Executive Summary
→Risks
→Findings
→Appendix 1. Severity Definitions
→Appendix 2. Scope
→Disclaimer

Want a comprehensive audit report like this?

Introduction

We express our gratitude to the CRE team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.

Crypto Real Estate is a company bridging the gap between the real estate industry and cryptocurrencies through our mobile app and real world business ventures including a crypto hotel and cafes.

titlecontent
PlatformEVM
LanguageSolidity
TagsERC20
Timeline05/05/2023 - 25/09/2023
Methodologyhttps://hackenio.cc/sc_methodology→

    Review Scope

    Repositoryhttps://dev.azure.com/blockstars/Solidity→
    Commit2de82e38f61602c2c79e85627f415740ef8b7ddf

    Audit Summary

    Total10/10
    Security Score

    10/10

    Test Coverage

    0%

    Code Quality Score

    10/10

    Documentation Quality Score

    10/10

    16Total Findings
    15Resolved
    0Accepted
    0Mitigated

    The system users should acknowledge all the risks summed up in the risks section of the report

    Document Information

    This report may contain confidential information about IT systems and the intellectual property of the Customer, as well as information about potential vulnerabilities and methods of their exploitation.

    The report can be disclosed publicly after prior consent by another Party. Any subsequent publication of this report shall be without mandatory consent.

    Document

    NameSmart Contract Code Review and Security Analysis Report for CRE
    Audited ByHacken
    Websitehttps://www.creproject.com/→
    Changelog12/05/2023 - Initial Review
    23/05/2023 - Second Review
    25/09/2023 - Third Review
    • Document

      Name
      Smart Contract Code Review and Security Analysis Report for CRE
      Audited By
      Hacken
      Changelog
      12/05/2023 - Initial Review
      23/05/2023 - Second Review
      25/09/2023 - Third Review

    System Overview

    CryptoRealEstate is an ERC-20 token that mints all initial supplies to a given address provided during contract creation. Additional minting is not allowed. It has the following attributes:

    • Name: Crypto Real Estate

    • Symbol: CRE

    • Decimals: 18

    • Total supply: 100M tokens.

    CryptoRealEstate uses OpenZeppelin Ownable contract to restrict access to critical functionalities, but transferOwnership() is not allowed. During contract creation, there is a new pair on Uniswap created - CRE/wETH. Additionally, each transfer of these tokens is taxed with up to 9 % and tax is burned. Owner of the contract can add an address to the whitelist and transferring tokens to or from the whitelisted address omits tax. There are 3 available taxes, but only one is appalled per transfer:

    • buyTax - up to 3%, this tax is applied when transfer is done from DEX.

    • sellTax - up to 9%, this tax is applied when transferring to DEX. Half of the tax is burned and the second half is saved for marketing wallet.

    • transferTax - up to 3%, this tax is applied when transferring to or from other addresses.

    Privileged roles

    • The owner of the CryptoRealEstate contract can add or can remove a given address from the whitelist, change buy, sell and transfer tax, set marketing wallet address, open trading, withdraw ERC20 or native tokens from contract.

    Executive Summary

    Documentation quality

    The total Documentation quality score is 10 out of 10.

    • Functional requirements are detailed.

    • A detailed technical description is provided in the form of extensive NatSpec comments.

    Code quality

    The total Code quality score is 10 out of 10.

    • Development environment is configured.

    • Code follows best practices.

    Test coverage

    Code coverage of the project is 0% (branch coverage).

    • No tests.

    Security score

    Upon auditing, the code was found to contain 0 critical, 0 high, 1 medium, and 7 low severity issues. Out of these, 8 issues have been addressed and resolved, leading to a Security score of 10 out of 10.

    All identified issues are detailed in the “Findings” section of this report.

    Summary

    The comprehensive audit of the customer's smart contract yields an overall score of 10. This score reflects the combined evaluation of documentation, code quality, test coverage, and security aspects of the project.

    Risks

    If a Marketing Wallet address is a contract without the ability to withdraw native tokens, funds can be potentially locked.

    Findings

    F-2023-0613Requirements Violation
    Status
    fixed
    Severity

    Medium
    F-2023-0620Contradiction - Documentation Mismatch
    Status
    fixed
    Severity

    Low
    F-2023-0619Contradiction - Undocumented Functionality
    Status
    fixed
    Severity

    Low
    F-2023-0618 CEI Pattern Violation
    Status
    fixed
    Severity

    Low
    F-2023-0617Missing Events
    Status
    fixed
    Severity

    Low
    F-2023-0616Missing Zero Address Validation
    Status
    fixed
    Severity

    Low
    F-2023-0615Unchecked Transfer
    Status
    fixed
    Severity

    Low
    F-2023-0614Unscalable Functionality - Copy Of Well-Known Contract
    Status
    fixed
    Severity

    Low
    I-2023-0128 Style Guide Violation - Naming Conventions
    Status
    fixed
    Severity

    Observation
    I-2023-0127Typo
    Status
    fixed
    Severity

    Observation
    Code
    ―
    Title
    Status
    Severity
    F-2023-0613Requirements Violation
    fixed

    Medium
    F-2023-0620Contradiction - Documentation Mismatch
    fixed

    Low
    F-2023-0619Contradiction - Undocumented Functionality
    fixed

    Low
    F-2023-0618 CEI Pattern Violation
    fixed

    Low
    F-2023-0617Missing Events
    fixed

    Low
    F-2023-0616Missing Zero Address Validation
    fixed

    Low
    F-2023-0615Unchecked Transfer
    fixed

    Low
    F-2023-0614Unscalable Functionality - Copy Of Well-Known Contract
    fixed

    Low
    I-2023-0128 Style Guide Violation - Naming Conventions
    fixed

    Observation
    I-2023-0127Typo
    fixed

    Observation
    1-10 of 16 findings

    Identify vulnerabilities in your smart contracts.

    Appendix 1. Severity Definitions

    When auditing smart contracts, Hacken is using a risk-based approach that considers Likelihood, Impact, Exploitability and Complexity metrics to evaluate findings and score severities.

    Reference on how risk scoring is done is available through the repository in our Github organization:

    Severity

    Description

    Critical
    Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

    High
    High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

    Medium
    Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

    Low
    Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score.
    • Severity

      Critical

      Description

      Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

      Severity

      High

      Description

      High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

      Severity

      Medium

      Description

      Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

      Severity

      Low

      Description

      Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution, do not affect security score but can affect code quality score.

    Appendix 2. Scope

    The scope of the project includes the following smart contracts from the provided repository:

    Scope Details

    Repositoryhttps://dev.azure.com/blockstars/Solidity→
    Commit2de82e38f61602c2c79e85627f415740ef8b7ddf
    WhitepaperProvided→
    RequirementsProvided (CRE Token.docx + CRE Token Requirements.pdf)
    Technical RequirementsProvided (CRE Token.docx + CRE Token Requirements.pdf)
    • Scope Details

      Commit
      2de82e38f61602c2c79e85627f415740ef8b7ddf
      Whitepaper
      Provided→
      Requirements
      Provided (CRE Token.docx + CRE Token Requirements.pdf)
      Technical Requirements
      Provided (CRE Token.docx + CRE Token Requirements.pdf)

    Contracts in Scope

    contracts
    CustomOwnable.sol - contracts › CustomOwnable.sol
    CryptoRealEstate.sol - contracts › CryptoRealEstate.sol
    interfaces
    IPancakeFactory.sol - contracts › interfaces › IPancakeFactory.sol
    IPancakeRouter.sol - contracts › interfaces › IPancakeRouter.sol
    [https:
    etherscan.io
    address
    0x21b8bfbbefc9e2b9a994871ecd742a5132b98aed#code](https:
    etherscan.io
    address
    0x21b8bfbbefc9e2b9a994871ecd742a5132b98aed#code) - [https: › › etherscan.io › address › 0x21b8bfbbefc9e2b9a994871ecd742a5132b98aed#code](https: › › etherscan.io › address › 0x21b8bfbbefc9e2b9a994871ecd742a5132b98aed#code)

    Disclaimer