Skip to content

fausecteam/faustctf-2021-veighty-machinery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAUST CTF 2021 Challenge: veighty-machinery

General

A simple stack-based virtual machine in C.

Build

Build:

$ make -C chall

Vulnerability

The swap instruction fails to check if there are at least two values on the stack. This allows the modification of the stack pointer, which is stored in front of the stack. Subsequently, out-of-bound access on the heap is possible.