Files
codeql/python/ql/test/experimental/library-tests/frameworks/yaml/Decoding.py
Rasmus Lerchedahl Petersen 172e058438 Python: unsafe -> mayExecuteInput
2020-10-15 12:56:29 +02:00

7 lines
371 B
Python

import yaml
from yaml import SafeLoader
yaml.load(payload) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=YAML $decodeMayExecuteInput
yaml.load(payload, Loader=SafeLoader) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=YAML
yaml.load(payload, Loader=yaml.BaseLoader) # $decodeInput=payload $decodeOutput=Attribute() $decodeFormat=YAML