Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.17 KB

File metadata and controls

45 lines (33 loc) · 1.17 KB

picoCTF 2022: basic-file-exploit

Author: Will Hong

Binary_Exploitation category Score: 100 Solved

Description

The program provided allows you to write to a file and read what you wrote from it. Try playing around with it and see if you can break it!

Connect to the program with netcat:

$ nc saturn.picoctf.net 55826

The program's source code with the flag redacted can be downloaded here.

Hints

Hint 1 Try passing in things the program doesn't expect. Like a string instead of a number.

Summary

You can write some data to the database and also read it again. If you select read (2) and instead of giving a valid number for the entry id you pass a string, the flag is printed.

Flag

Show flag
picoCTF{M4K3_5UR3_70_CH3CK_Y0UR_1NPU75_149F090A}