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

Stop using the shell to run commands #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

myyk
Copy link

@myyk myyk commented Mar 29, 2023

This prevents RCE with $(...) syntax, and makes the regex escaping functions unnecessary, and the code slightly cleaner.

Fixes #287

Manually tested on Ubuntu running locally.

Setup:
image

Before:
image

After:
image

hhhhhhhhhn and others added 2 commits March 29, 2023 16:36
This prevents RCE with $(...) syntax, and makes the regex escaping
functions unnecessary, and the code slightly cleaner.
@end-me-please
Copy link

why is this not merged? seems like a huge security flaw, especially when you have untrusted user input in the prompt and the output.

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

Successfully merging this pull request may close these issues.

Remote Code Execution in the text box of Dalai
3 participants