2024 Web3 Security ReportAccess control exploits account for nearly 80% of crypto hacks in 2024.
Discover report insights
  • Hacken
  • Audits
  • marsha-foundation
  • [SCA] Marsha+ Foundation / Token / Nov2023
Marsha+ Foundation logo

Marsha+ Foundation

Audit name:

[SCA] Marsha+ Foundation / Token / Nov2023

Date:

Jun 6, 2024

Table of Content

Introduction
Audit Summary
System Overview
Risks
Findings
Appendix 1. Severity Definitions
Appendix 2. Scope
Disclaimer

Want a comprehensive audit report like this?

Introduction

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

Document

NameSmart Contract Code Review and Security Analysis Report for Marsha+ Foundation
Audited By
Approved ByYves Toiser
Websitehttps://www.marshafoundation.org/
Changelog03/11/2023 - Preliminary Report --16/11/2023 - Final Report –- This report has been reissued on 05/06/2024 because of a change of repository
PlatformEVM
LanguageSolidity
TagsERC20
Methodologyhttps://hackenio.cc/sc_methodology
  • Document

    Name
    Smart Contract Code Review and Security Analysis Report for Marsha+ Foundation
    Audited By
    Approved By
    Yves Toiser
    Changelog
    03/11/2023 - Preliminary Report --16/11/2023 - Final Report –- This report has been reissued on 05/06/2024 because of a change of repository
    Platform
    EVM
    Language
    Solidity
    Tags
    ERC20

Review Scope

Repositoryhttps://github.com/MarshaFoundation/MarshaPlusSolidityContract/
Commit0f3ad58f036ed761f78ba8670dd0725561352443

Audit Summary

8Total Findings
8Resolved
0Accepted
0Mitigated

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

Documentation quality

  • Functional requirements are provided.

  • Technical description is provided.

Code quality

  • The development environment is configured.

Test coverage

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

  • Tests are not mandatory for projects with LOC \< 250.

System Overview

MarshaToken  — it is a simple ERC-20 token that mints all initial supply to the deployed contract. Additional minting is not allowed.

It has the following attributes:

  • Name: MARSHA+

  • Symbol: MSA

  • Decimals: 18

  • Total supply: 8 billion tokens

Risks

If community tokens are moved to a different address, it will no longer be possible to call the burnIfNeeded() function, nor will the annual burning of community tokens be feasible.

Findings

Code
Title
Status
Severity
F-2024-3595Funds lock because of denial of transfer service
fixed

Critical
F-2024-3596Overriding inherited functions violation
fixed

Medium
F-2024-3598Incorrect state variables updating
fixed

Low
F-2024-3597Missing zero address validation
fixed

Low
F-2024-3602Style guide violation
fixed

Observation
F-2024-3601State variable default visibility is not set
fixed

Observation
F-2024-3600State variables can be declared immutable
fixed

Observation
F-2024-3599Floating pragma used in the contract
fixed

Observation
1-8 of 8 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:

Contracts in Scope

contracts
MarshaPlus.sol - contracts/MarshaPlus.sol

Disclaimer