Monday, November 29, 2021
HomeCybersecuritySecurity ToolsOverRide: Reverse-Engineering and Binary Exploitation Tool

OverRide: Reverse-Engineering and Binary Exploitation Tool

OverRide is a tool help you to explore disassembly, binary exploitation & reverse-engineering through 10 little challenges.

In the folder for each level you will find:

  • flag – password for next level
  • – how to find password
  • source.c – the reverse engineered binary
  • – notes on asm

See the subject for more details.

Getting Started

First download from 42 OverRide.iso.

Virtual Machine Setup

On Mac OSX, install VirtualBox.

In VirtualBox create a new VM (click new).

  • Name and operating system – Type: Linux, Version: (Oracle 64-bit)

Continue through all the next steps with the default settings:

  • Memory size: 4MB
  • Hard disk: Create a disk now
  • Hard disk file type: VDI(VirtualBox Disk Image)
  • Storage on physical hard disk: Dynamically allocated
  • File size: 12,00GB

Next click Settings > Network > Adapter 1 > Attached to: Bridged Adapter.

Still in settings click Storage > Right of “Controller: IDE”, there is a CD icon with a + sign (add optical drive). Click Add Disk Image, and select OverRide.iso.

Click Start to start the VM, once runnning it should show the VM IP address and prompt user to login.

SSH Connect

Log in from a separate shell as user level00 with password level00.

ssh [email protected]{VM_IP} -p 4242

Level Up

As user level00 the goal is to read the password for user level01, found at /home/users/level01/.pass. However, user level00 does not have permissions to read this file.

In the home folder for user level00 is a binary level00 with SUID set and owner level01.

This means when we execute the binary level00, we do so with the permissions of user level01.

We must find a vulnerability in the binary level00 with gdb. Then exploit the vulnerability to run system(“/bin/sh”), opening a shell as user level01 where we have permissions to read the password.

cat /home/users/level01/.pass

Then log in as user level01.

su level01

Repeat for each level.

Reverse-engineered binary

For each level, we reverse engineered the original source.c by examining the gdb disassembly of the binary.

Levels Overview

  • 0 – Hardcoded password
  • 1 – Ret2Libc attack
  • 2 – printf() format string attack
  • 3 – Brute force password
  • 4 – gets() stack overflow + Return-to-libc attack
  • 5 – Shellcode in env variable + printf() format string attack
  • 6 – Hash value discoverable with gdb
  • 7 – Ret2Libc Attack on unprotected data table
  • 8 – Binary backs up password via symlink
  • 9 – Off-by-one error

- Advertisement -Threat Intelligence

Latest stories

An In-Depth Guide to Network Security

How much do you know about network security? Do you have a high-level understanding of how it works? Do you know the top priorities...

5 Steps to Protect Yourself Against Ransomware

If you’ve been keeping up with cybersecurity news lately, you’ve likely heard of ransomware, one of the most dangerous cyber threats businesses can face. Ransomware...

How to Spot a Phishing Email

What’s the first thing you do when you get an email in your inbox? If you’re like most people, your answer probably involves something...

Behind The Scenes of a Malware Analysis

Every computer user understands the importance of cybersecurity in today’s world, and businesses must work hard to protect themselves against malicious attacks. But what...

6 Biggest Cybersecurity Threats Facing Businesses

Every day, cybercriminals are finding new ways to target businesses and steal their data, either to sell to the highest bidder or just out...