Level 19 - Alien Codex ⏺⏺⏺⏺

Level Setup

You've uncovered an Alien contract. Claim ownership to complete the level.

Things that might help

  • Understanding how array storage works

  • Understanding ABI specifications

  • Using a very underhanded approach

Level Contract

Exploit

Submit instance... 🥳

Completion Message

This level exploits the fact that the EVM doesn't validate an array's ABI-encoded length vs its actual payload.

Additionally, it exploits the arithmetic underflow of array length, by expanding the array's bounds to the entire storage area of 2^256. The user is then able to modify all contract storage.

Both vulnerabilities are inspired by 2017's Underhanded coding contest

Notes

Last updated