HACONTI: Cybersecurity Challenges in Smart Contracts

November 7, 2024

HACONTI: Cybersecurity Challenges in Smart Contracts

By Juan Schällibaum, Application Security Engineer at Ualá

Introduction

Smart contracts are transforming the way we transact and manage digital assets on the Ethereum blockchain. However, like any software, they can be vulnerable to security issues. A clear example of this was the 2016 DAO Hack, where an attacker exploited a vulnerability to steal 3.54 million ether, underscoring the importance of having robust security in these contracts.

In this article, we will explore some of the most common vulnerabilities affecting smart contracts. We will also introduce HACONTI, a free platform that provides cybersecurity challenges focused on smart contracts. HACONTI is designed to help developers improve the security of their contracts and allow security specialists to learn how to assess these critical systems.

Smart Contract Vulnerabilities

Smart contracts can be affected by multiple types of vulnerabilities. Some of the most critical are included in the list below.

(Free access, no subscription required)

  • Reentrancy: Allows an attacker to repeatedly call a function again before its previous execution is completed, manipulating the contract.
  • Integer Overflow: An integer overflow occurs when an arithmetic operation surpasses the fixed range of a type of data, causing unexpected behavior.
  • Denial of Service (DoS): A DoS attack can block access to critical functions or deplete the gas of the contract, preventing its proper operation.
  • Access Control Flaws: These flaws allow unauthorized users to access functions that should be restricted, compromising the system’s integrity.
  • Private Information on the Blockchain: As information stored on the blockchain is public, confidentiality can be compromised if it is not properly encrypted.
  • Insecure Calls to External Contracts: The use of delegatecall() with untrusted contracts may allow the manipulation of the internal state of the calling contract.
Additional reading:

HACONTI – Cybersecurity Challenges

HACONTI (short for Hack The Not So Smart Contract in Spanish) is a web platform that offers cybersecurity challenges focusing on Solidity smart contracts. Each level or challenge presents a smart contract with a vulnerability which users must exploit.

The platform has a total of thirty levels, organized into three different categories, each with its own difficulty level. Two of the most notable features of HACONTI are the extensive contextual information it provides for the vulnerabilities in each level and its unique points system.

HACONTI Main Menu

The views expressed by the authors of this blog are their own and do not necessarily reflect the views of LACNIC.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments