Forum Discussion

7 Replies

  • I'm stuck here too.
    I've tried sending several curls to Morphy's Mansion to move pieces in order to create a buffer overflow (log_move has two parameters: one for the move, to be sent to the overflow, and one to execute a command, I think).
    I'm not entirely sure how the board is "mapped" (e.g. a1a2...) to send correct moves. I occasionally got successes, but I can't read or copy the token.

    • OpShaft's avatar
      OpShaft
      Icon for Bronze I rankBronze I

      Any luck? I think I'm able to make moves to spots like a4, b4, etc. But I'm not sure how I would get out of there to find/read the token.

  • That is the only one I need to complete all challenges, I am not sure how to exploit buffer overflow. If anyone has a hint would be great or if Immersive will have a meeting to know how to resolve it, would be amazing.

    • PRABAKARANRAMAMURTHY's avatar
      PRABAKARANRAMAMURTHY
      Icon for Bronze III rankBronze III

      Yes immervivesolver​. Took me a few days and assistance from AI to solve this.
      The strategy was to use No-ROP Function-Pointer Overwrite.

      Following the steps below:
      1. Check Backend Health
      curl -s http://x.x.x.x/api/health

      2. Analyze Vulnerable Binary:
      nm -C ./move_logger | grep rotate_old_logs
      objdump -d ./move_logger | awk '/<system@plt>/{print; getline; print}'

      3. Confirm Stack Layout in GDB 
      (use PEDA and execute: p &moves , p &log to find the buffer size)

      4. Craft Overflow Payload: 
      Payload: e4aaaaaaaaaaaaaaXXXXXX0000000000

      5. Exploit via API - curl POST
      6. Retrieve Token by using curl

      Hope that helps.

       

      • ThreatWhisperer's avatar
        ThreatWhisperer
        Icon for Bronze II rankBronze II

        Wow, this is exactly what I'd have needed!
        All I needed was to finish this one task and I would have finished the lab, but I only have access to the platform one month a year (October, Cybersecurity Month...).
        Next time!