Challenges › Mobile

The Wrong Order Wins

medium · 150 XP · flag · free · solves: 0

Ruby's test app pushed every input through a five-step pipeline of Kotlin coroutines, labelled step A to step E. That would have been easy to follow, except none of the steps were called directly. A hidden reflection dispatcher looked up each class and method at runtime, so reading the code told you almost nothing. The order mattered, and the obvious order was wrong. Only a particular path through the pipeline would produce the secret. Can you trace the dispatcher, recover the real order of the steps and compute the flag?

This Android application processes input seeds through a 5-step Kotlin Coroutine pipeline (`StepA` to `StepE`).

Rather than standard method calls, the application uses an obfuscated reflection dispatcher (`ReflectionDispatcher`) that resolves class and method names dynamically at runtime from an encrypted XOR lookup table (`NameTable`). Kotlin coroutines compile each step into state machines (`ContinuationImpl`), creating control-flow flattening.

Your objective is to trace the reflection call graph or intercept the coroutine step execution to recover the flag.

Tags: Mobile

Try next