Avitus

Avitus Smart Contract Audit Report

Share
Share
AvitusAvitus
GameFiVaultsUpgradable contracts+1
AvitusAvitus
GameFiVaults+2

QuillAudits audited the Avitus smart contracts on Avitus between Aug 7, 2025 and Aug 20, 2025. The audit found 11 issues: 4 medium, 5 low, 2 informational, of which 11 resolved and 0 acknowledged.

Project Description

Portal Wallet Contracts is a multi-contract vault system for managing deposits and withdrawals of ETH and ERC-20 tokens.
Core Capabilities:
• Multi-token deposits (ETH and ERC-20)
• Timelock-protected governance for critical operations (role changes, fund recovery, router updates)
• Upgradeable vault architecture using the UUPS proxy pattern
• Emergency controls with pause/unpause functionality and fund recovery mechanisms
• Separation across componentsArchitecture Components • Router: User-facing entry point for deposits and withdrawals • Vault: Secure fund storage and accounting • RoleManager: Access control and role administration • Timelock: Enforces governance delays for sensitive actions

Timeline

S1
Aug 7, 2025
IA
Aug 18, 2025
S2
Aug 20, 2025

Scope of Audit

The scope of this Audit was to analyze Avitus Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
97.5%
AUDIT SCORE
icon

Critical

High

Medium

Low

Informational

open00000
acknowledged00000
partially resolved00000
resolved00452

Medium Severity Issues

Token Dust Triggers DoS for Token Removal Functionality

Resolved
arrow-right
Description

Anyone can send ETH/tokens directly to the Vault, increasing on-chain balances without increasing totalDeposits. removeSupportedToken requires both tracked deposits and on-chain balances to be zero—single “dust” can permanently block removal.

Contract

contracts/vault/Vault.sol

Recommendation

Add a timelocked sweepDust(token, to, amount) or reconcileExtraBalance(token) to align accounting; documents that direct sends are unsupported. Consider gating removal on tracked deposits only, if acceptable.

Access Control Bypass in Timelock Contract – Proposal Spam and Manipulation

Resolved
arrow-right
Description

The Timelock contract contains an access control vulnerability where the onlyVaultAdmin modifier uses a user-controlled caller parameter instead of msg.sender to verify permissions. 

While the actual execution of sensitive operations is properly protected in the Vault contract, this vulnerability allows attackers to spam and manipulate proposals in the Timelock contract. But the most impactful consequence is that this vulnerability gives anyone the ability to delete legitimate proposals.

Contract

contracts/timelock/Timelock.sol

Recommendation

It is recommended to remove the caller parameter and always use msg.sender in access control checks.

Missing Binding of Parameters for Fund Recovery

Resolved
arrow-right
Description

proposeRecoverFunds only stores key, target (set to token), and executableAfter in PendingVault. It does not store recipient or amount. Consequently, executeRecoverFunds cannot verify that the (recipient, amount) provided at execution time matches what was originally proposed. Even if you later wire execution to move funds, you cannot enforce that the same recipient and amount were time-locked.

Contract

contracts/timelock/Timelock.sol

Recommendation

It is recommended to store all parameters for each action type and validate them on execution. Use typed structs per action

ETH Amount Mismatch in Router Deposit Function

Resolved
arrow-right
Description

The deposit() function in the WalletRouter contract contains a vulnerability where it does not validate that msg.value equals the amount parameter for ETH deposits. 

This implementation allows a user to specify any msg.value and pass any number in the amount parameter, causing the Vault to register the wrong amount and possibly for the Router to use its own ETH balance to make up the difference.

Moreover - event emits the requested amount (not actual msg.value).

Contract

contracts/router/WalletRouter.sol

Recommendation

It is recommended to add validation to ensure msg.value == amount for ETH deposits and use msg.value when transferring ETH and recording deposit amounts.

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Avitus

Avitus

Medium Severity Issues
Low Severity Issues
Informational Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC