Researcher Demonstrates RCE in Solana Validator
· 33:48 · Watch on YouTube ↗
Summary
Ginoah explains a patched Solana validator vulnerability introduced in version 1.16 and demonstrates how a malicious program could exploit memory mapping to achieve remote code execution.
Key points
- The vulnerability was introduced by the direct-mapping optimization in Solana 1.16 and had been patched by the time of the talk.
- During cross-program invocation, a memory-region update used a virtual address controlled by the calling program without ensuring it pointed to the correct account data.
- The researcher used writable accounts of different lengths to obtain out-of-bounds host-memory access, then described turning it into arbitrary reads and writes.
- The demonstration used a return-oriented programming chain to execute code on a default-configured validator and obtain a reverse shell.
Article Details
- Topics
- [01:11] Solana validator and vulnerability background
- [03:48] Legacy account handling and cross-program invocation
- [10:36] Direct mapping and memory permissions
- [21:45] User-controlled address in the memory-region update
- [26:39] Out-of-bounds access and remote code execution
- [30:56] Validator exploit demonstration
