Audit Open Original ↗
Solang Code Generation
Type
Security review
Client
Solana Labs
Date
2023-11
Domain
Blockchain
Effort
4 wks
Section
Solana
Trail of Bits's security review of Solana Labs (Nov 2023) identified 14 issues: 4 high, 1 medium, 3 low, and 6 informational.
Findings · 14
- 1 Use of dependency with open RUSTSEC advisory Informational
- 2 Use of outdated dependencies Informational
- 3 Insufficient test coverage Informational
- 4 Tests do not pass with latest stable Rust version Informational
- 5 Strength reduction does not properly handle undefined variables Low
- 6 Solang fails to compile certain valid recursive structures Low
- 7 Monolithic test Informational
- 8 Optimizations hide unused undefined variables in contracts Informational
- 9 Solang-compiled contracts can have multiple storage accounts High
- 10 An attacker can reinitialize a Solang contract High
- 11 Compiler does not verify the developer-specified size for the data account Medium
- 12 The bump is not guaranteed to be at the end of seeds array Low
- 13 Appending state variables to Solang contracts affects their storage layout High
- 14 Fallback function does not verify the data account’s magic value High
Findings extracted from the published report PDF. See the full report below for details and remediation.
Related