TrustNet Score
The TrustNet Score evaluates crypto projects based on audit results, security, KYC verification, and social media presence. This score offers a quick, transparent view of a project's credibility, helping users make informed decisions in the Web3 space.
Real-Time Threat Detection
Real-time threat detection, powered by Cyvers.io,
is currently not
activated
for this project.
This advanced feature provides continuous monitoring and instant alerts to safeguard your assets from potential security threats. Real-time detection enhances your project's security by proactively identifying and mitigating risks.
For more information, click here.
Security Assessments
Summary and Final Words
No crucial issues found
The contract does not contain issues of high or medium criticality. This means that no known vulnerabilities were found in the source code.
Contract owner cannot mint
It is not possible to mint new tokens.
Contract owner cannot blacklist addresses.
It is not possible to lock user funds by blacklisting addresses.
Contract owner cannot set high fees
The fees, if applicable, can be a maximum of 25% or lower. The contract can therefore not be locked. Please take a look in the comment section for more details.
Contract cannot be locked
Owner cannot lock any user funds.
Token cannot be burned
There is no burning within the contract without any allowances
Ownership is renounced
The contract does not include owner functions that allow post-deployment modifications.
Contract is not upgradeable
The contract does not use proxy patterns or other mechanisms to allow future upgrades. Its behavior is locked in its current state.
Scope of Work
This audit encompasses the evaluation of the files listed below, each verified with a SHA-1 Hash. The team referenced above has provided the necessary files for assessment.
The auditing process consists of the following systematic steps:
- Specification Review: Analyze the provided specifications, source code, and instructions to fully understand the smart contract's size, scope, and functionality.
- Manual Code Examination: Conduct a thorough line-by-line review of the source code to identify potential vulnerabilities and areas for improvement.
- Specification Alignment: Ensure that the code accurately implements the provided specifications and intended functionalities.
- Test Coverage Assessment: Evaluate the extent and effectiveness of test cases in covering the codebase, identifying any gaps in testing.
- Symbolic Execution: Analyze the smart contract to determine how various inputs affect execution paths, identifying potential edge cases and vulnerabilities.
- Best Practices Evaluation: Assess the smart contracts against established industry and academic best practices to enhance efficiency, maintainability, and security.
- Actionable Recommendations: Provide detailed, specific, and actionable steps to secure and optimize the smart contracts.
A file with a different Hash has been intentionally or otherwise modified after the security review. A different Hash may indicate a changed condition or potential vulnerability that was not within the scope of this review.
Final Words
The following provides a concise summary of the audit report, accompanied by insightful comments from the auditor. This overview captures the key findings and observations, offering valuable context and clarity.
Smart Contract Analysis Statement
Contract Analysis
The CULT contract implements an upgradeable ERC20 token with voting and permit support and a transfer tax, 0.4% by default, that is sent to a treasury contract, which is then called on every taxed transfer.
Ownership Privileges
The contract has a single owner, set to the account that deploys the proxy. In the deployments documented in the repository the deployer keeps ownership. For the live token on Ethereum mainnet (0xf0f9D895aCa5c8678f706FB8216fa22957685A13), ownership is renounced: at block 26464734 the owner is the zero address, no proxy admin is set, the tax is 0.4%, and the treasury contract, itself an upgradeable proxy with a renounced owner, can no longer be replaced or upgraded. The verified source of the live implementation matches the audited file; it was built against OpenZeppelin 4.4.1 instead of the 4.8.3 used in this analysis. While an owner exists, as in the documented deployments, it retains the following privileges:
- The owner can upgrade the token logic at any time, which would allow minting or moving holders' tokens.
- The owner can set the transfer tax to any value, including 100% of each transfer or a value that makes every taxed transfer fail.
- The owner can replace the treasury contract that every taxed transfer calls, which can block all transfers or transfers of chosen senders.
- The owner can exempt addresses from the tax.
- Once ownership is renounced, none of these privileges can be used again, and the tax and treasury stay fixed at their last values.
Security Features
The contract implements the following positive security features:
- The supply is minted once at initialization, and no mint function exists without an upgrade.
- No pause function exists without an upgrade.
- Upgrades can only be executed through the proxy and only by the owner.
- On mainnet, ownership is renounced, so the logic, the tax and the treasury of the live token are fixed.
- Permit signatures and vote delegation use the standard library implementation with nonces and deadlines.
Note - This Audit report consists of a security analysis of the CULT smart contract. This analysis did not include economic analysis of the contract's tokenomics. Moreover, this statement covers only the CULT contract as it appears in the CULT-Migration repository; the Migration and zkFOL contracts are covered by their own statements, and other contracts associated with the project were not audited by our team. We recommend investors do their own research before investing.
Files and details
Findings and Audit result
high Issues | 3 findings
Resolved
#1 high Issue
Owner can replace the token logic
CULT is a UUPS implementation behind an ERC-1967 proxy, and _authorizeUpgrade only requires msg.sender to be the owner. While an owner exists, as in the repository's documented test deployment where the deployer keeps ownership, it can upgrade to arbitrary code at any time, for example to mint without limit or to move any holder's balance. A local test upgraded the proxy and took a holder's entire balance and minted new tokens. If ownership is renounced, as AUDIT.md states for mainnet, the upgrade path is closed for good.
Resolved
#2 high Issue
Owner can set an unbounded transfer tax
setTax stores any value without a bound, and _transfer takes amount * tax / 1000 from every transfer in which neither side is whitelisted. While an owner exists, it can raise the tax above 25 percent, to 100 percent so that recipients receive nothing, or above 100 percent so that every taxed transfer reverts in the subtraction, which stops all ordinary transfers, sells and Migration deposits. Local tests showed the 25 percent, 100 percent and reverting cases. Renouncing ownership fixes the tax at its current value.
Resolved
#3 high Issue
Owner can replace the treasury contract that every taxed transfer calls
Every taxed transfer ends with ITreasury(treasury).validatePayout(), and setTreasuryAddress lets the owner point it at any non-zero address. An address without code or a reverting contract stops every taxed transfer, a contract can block chosen senders by checking tx.origin, and a contract can burn gas on each transfer. The new treasury is whitelisted without a WhitelistAddressUpdated event and the old one stays whitelisted. Local tests showed each case, including a transfer rising from 76,234 to 1,096,987 gas.
optimization Issues | 1 findings
Acknowledged
#1 optimization Issue
Tax legs and hook run even when the tax rounds to zero
_transfer always performs the treasury leg and calls validatePayout when neither side is whitelisted, even when amount * tax / 1000 is zero, which happens for amounts below 250 wei at the current tax. Skipping the treasury leg and the hook when the tax is zero would save a transfer, an event and an external call on such transfers. This only matters for a future deployment.
informational Issues | 4 findings
Acknowledged
#1 informational Issue
Implementation contract can be initialized by anyone
Cult has no constructor that calls _disableInitializers, and the documented deployment initializes only the proxy. Anyone can therefore call initialize on the implementation, become its owner and mint a separate supply named Cult DAO at the implementation address. The onlyProxy checks of OpenZeppelin 4.8.3 stop that owner from upgrading or destroying the implementation, so the proxy and its holders are not affected. A local test confirmed both points.
Resolved
#2 informational Issue
Taxed transfers revert until the treasury is set
initialize does not set a treasury, so treasury is address(0) until the owner calls setTreasuryAddress. Until then every transfer in which neither side is whitelisted reverts with a transfer to the zero address. If ownership were renounced first, taxed transfers would be impossible for good. The documented scripts set the treasury right after deployment. A local test showed the revert and the permanent state after renouncing.
Acknowledged
#3 informational Issue
Compound-style vote getters revert above 2^96 - 1 votes
_maxSupply is raised to 2^224 - 1 for both vote extensions, while getCurrentVotes and getPriorVotes from ERC20VotesComp cast the result to uint96. With a supply at the scale of the live token, 6.67e30 units and more than 2^96 - 1, these getters revert for any delegate above 7.9e28 votes. A local test with that supply showed getVotes working and both Compound-style getters reverting.
Acknowledged
#4 informational Issue
Permit domain name differs from the token name
initialize sets the ERC-20 name to Cult DAO but the EIP-712 permit domain to cult. Wallets and relayers that build the domain from name() produce signatures that permit rejects with an invalid signature error, while signatures over the domain name cult work. A local test showed both outcomes. Funds are not at risk, but integrations fail.