AI Society - Audit

CertiK1 address on Ethereum

CertiK reviewed AI Society (AI Society - Audit) on 25 Aug 2023: 5 findings, 1 critical; 1 marked fixed, 3 acknowledged, 1 open.

1 critical finding, fixed
Open the reportOpen AI Society’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings5

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical001
High020
Medium010
Low100
CriticalPotential Infinite LoopFixed

In the following Solidity code snippet, there is a loop intended to iterate through an array of minters and delete specific elements based on a condition. However, the code has a critical flaw that leads to an infinite loop. ```solidity while (i < minters.length) { _minter = minters[i]; if (!minter[_minter]) { minters[i] = minters[minters.length - 1]; delete minters[minters.length - 1]; // minters.length--; } else { i++; } } ``` The issue arises from the use of the `delete` keyword on the last element of the array. While this does reset the value at the specified index to its default value, it does not change the length of the array. As a result, if the last element of the array meets the deletion condition, the loop will continue to iterate over the last element indefinitely, leading to an infinite loop.

Contracts in scope1

AddressChainSource code
0x42a7797351dfd281a80807196c8508eb70bb2af9Chain: EthereumSource code: Verified source

Part of AI Society’s security record

AI Society
Audits1 audit by 1 firmLast audit Aug 2023, by CertiK.
Critical findingsNo open critical findingsIn that report, 1 critical finding was reported. It is marked fixed by the firm that reported it.
Open AI Society’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us