Writeups/1337UP/Babyflow
1337UPEasyCTF Challenge

Babyflow

Babyflow

##Challenge Name: Babyflow

###Solves

  • >Solves: 438
  • >Points: 50

###Description

Does this login application even work?!

Attachment: babyflow
Connection:

nc babyflow.ctf.intigriti.io 1331


###Approach

  1. >

    Analyzing the File Type:

    • >We started by identifying the file type of the provided
      babyflow
      binary:
      bash
      file babyflow
    • >The result indicated that it is an x64 ELF Executable.
  2. >

    Executing the Binary:

    • >

      After giving the necessary file permissions using

      chmod
      :

      bash
      chmod +x babyflow ./babyflow
    • >

      The binary prompted us to enter a password.

      image1
      image1

  3. >

    Decompiling the ELF File:

    • >

      Using a decompiler (e.g.,

      Ghidra
      or
      IDA
      ), we analyzed the binary and discovered the hardcoded password:

      SuPeRsEcUrEPaSsWoRd123

      image2
      image2

    • >

      However, the issue was with the variable

      local_c
      , which was initialized to
      0
      . As long as
      local_c
      remains
      0
      , the program refuses to reveal the flag.

      image3
      image3

  4. >

    Exploiting the Buffer Overflow:

    • >Observing the code, we found that the
      local_c
      variable was located near the memory segment for the password input.
    • >We crafted a payload to overflow the buffer and overwrite
      local_c
      with non-zero values (
      \x01
      ).

    Payload:

    plaintext
    SuPeRsEcUrEPaSsWoRd123AAAAAAAAAAAAAAAAAAAAAA\x01\x01\x01\x01
  5. >

    Getting the Flag:

    • >

      Running the binary with the payload revealed the flag:

      INTIGRITI{b4bypwn_9cdfb439c7876e703e307864c9167a15}

      image4
      image4


###Flag

INTIGRITI{b4bypwn_9cdfb439c7876e703e307864c9167a15}

$ echo "Open to collaborations, research, and security engineering work."

> Open to collaborations, research, and security engineering work.

$ uptime

> Portfolio online since 2024 | Last updated: Feb 2026

"No one is useless in this world who lightens the burdens of another." — Charles Dickens

Considered a small donation if you found any of the walkthrough or blog posts helpful. Much appreciate :)

Buy me a coffee

© 2026 Shivang Tiwari. Built with Next.js. Hack the planet.