SkyTrade

SkyTrade Smart Contract Audit Report

Share
Share
EVMEVM
RWA / Tokenization / ReFiUpgradable contractsToken Sale+2
EVMEVM
RWA / Tokenization / ReFiUpgradable contracts+3

QuillAudits audited the SkyTrade smart contracts on EVM between Oct 21, 2025 and Nov 12, 2025. The audit found 8 issues: 2 high, 4 medium, 2 low, of which 7 resolved and 1 acknowledged.

Project Description

Skytrade Smart contracts provide a system for launching regulatory-compliant securities tokens on a decentralized blockchain. This particular repository is the implementation of a system that allows for the creation of ST-20-compatible tokens. This system has a modular design that promotes a variety of pluggable components for various types of issuances, legal requirements, and offering processes.

Timeline

S1
Oct 21, 2025
IA
Oct 27, 2025
S2
Nov 12, 2025
speedometer
0
50%
60%
70%
90%
100%
95.8%
AUDIT SCORE
icon

Critical

High

Medium

Low

Informational

open00000
acknowledged01000
partially resolved00000
resolved01420

High Severity Issues

Zero minimum token protection enables slippage attacks during tier transitions in STO purchases

Resolved
arrow-right
Description

The buyWithUSD function calls buyWithUSDRateLimited with a hardcoded minimum token value of zero, removing slippage protection for investors purchasing tokens through the tiered pricing system. The function processes investments sequentially through pricing tiers that can advance between transaction submission and execution as other investors deplete current tier token supplies.
However, setting minimum tokens to zero allows investors to receive significantly fewer tokens than expected when tier progression occurs during transaction processing. When multiple transactions compete for limited tier allocations or large investments exhaust current tier availability, subsequent transactions execute at higher tier prices without adequate protection against unfavorable pricing changes. The tiered mechanism advances dynamically during execution, making final token allocation unpredictable at transaction submission time.
Consequently, investors face unlimited slippage exposure during high-demand periods when tier boundaries shift rapidly due to competing transactions. Sophisticated actors can exploit this vulnerability through front-running attacks, deliberately exhausting favorable pricing tiers to force legitimate investors into less advantageous positions. The zero minimum token requirement provides no recourse for investors who receive substantially fewer tokens than anticipated, creating unfair market conditions that particularly disadvantage retail participants who cannot monitor real-time tier progression.

Contract

contracts/modules/STO/USDTiered/USDTieredSTO.sol:424-426

Recommendation

We recommend replacing the hardcoded zero value with a calculated minimum token amount based on current tier pricing and investor expectations, or implementing a slippage tolerance parameter that allows investors to specify their acceptable minimum token allocation relative to their investment amount.

Signature replay attack enables unauthorized merkle root modifications through reused signatures

Acknowledged
arrow-right
Description

The updateMerkleRootWithSignature function accepts operator signatures to update the merkle root and expiry but lacks replay attack protection mechanisms such as nonces or unique identifiers. The function verifies that the signature comes from an authorized operator by recovering the signer address from the signature and checking against the isOperator mapping. However, the signature verification process only validates the authenticity of the signature against the provided root and expiry parameters without implementing any safeguards to prevent the reuse of previously valid signatures.
The signature creation process at lines 75-76 generates a message hash using only the root and expiry parameters, making it susceptible to replay attacks when the same combination of root and expiry values are used multiple times. Since the function does not maintain any record of previously used signatures or implement a nonce-based system, an attacker who obtains a valid signature can replay it indefinitely as long as the expiry timestamp remains in the future and is greater than or equal to the current root expiry.
Consequently, malicious actors who intercept or obtain valid operator signatures can repeatedly execute the updateMerkleRootWithSignature function with the same parameters, potentially overriding legitimate merkle root updates with previously used values. This vulnerability allows attackers to revert the contract state to outdated KYC data sets, effectively undermining the integrity of the investor verification system and potentially enabling unauthorized trading activities by investors whose KYC status should have been updated or revoked.

Contract

contracts/external/TradingRestrictionManager/TradingRestrictionManager.sol:63-85

Recommendation

We recommend implementing a nonce-based replay protection mechanism by adding a mapping to track used nonces for each operator and including the nonce value in the signature message hash. The function should verify that the provided nonce has not been used previously and increment the nonce counter after successful verification to prevent signature reuse.

Medium Severity Issues

Low Severity Issues

Appendix

Disclaimer

SkyTrade

SkyTrade

High Severity Issues
Medium Severity Issues
Low Severity 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