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

Potential Code Injection Vulnerability #37

Open
nevercodecorrect opened this issue May 10, 2024 · 1 comment
Open

Potential Code Injection Vulnerability #37

nevercodecorrect opened this issue May 10, 2024 · 1 comment

Comments

@nevercodecorrect
Copy link

Code injection could happen via environment variable.
In code here, it directly eval the value from environment variable. A malicous local actor could set something like export is_half='os.system("touch rickroll")' to execute arbitrary commands. It would be better to use ast.literal_eval here.
For ref, this issue is similar to CVE-2022-2054.

@Kedreamix
Copy link
Owner

Thank you for bringing this to my attention and for highlighting the potential security risk. I will try!!!

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