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

Update commandsAndMenu.tsx to replace "`" in file path for Open Git Repository since it leads to Command Injection Vulnerability #1196

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

rahrad123
Copy link
Contributor

When a repo is created with the backtick character around it and Initialized as a repo and then opened in Terminal, the linux command is resolved or executed on a running instance. For example if a folder with the name "whoami" is created, initialized as a repo and then opened in terminal using 'Open Git repository in Terminal' you will see that whoami is resolved to the current user which is a vector of command injection.

…epository since it leads to Command Injection Vulnerability

When a repo is created with the backtick character around it and Initialized as a repo and then opened in Terminal, the linux command is resolved or executed on a running instance. For example if a folder with the name "whoami" is created, initialized as a repo and then opened in terminal using 'Open Git repository in Terminal' you will see that whoami is resolved to the current user which is a vector of command injection.
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

Binder 👈 Launch a binder notebook on branch rahrad123/jupyterlab-git/SagemakerGitFix

@fcollonval fcollonval added the bug label Dec 6, 2022
Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rahrad123

@fcollonval fcollonval merged commit 2e8fd94 into jupyterlab:master Dec 6, 2022
@welcome
Copy link

welcome bot commented Dec 6, 2022

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@rahrad123
Copy link
Contributor Author

rahrad123 commented Dec 7, 2022

@fcollonval AWS Sagemaker currently uses version 0.11.0 and 0.24.0 for JupyterLab 1 version currently. Could you merge these changes to the jlab-2 branch and the 0.11.x branch please?

Also, would it be possible bump the version for this fix and release a new version for pip?

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

Successfully merging this pull request may close these issues.

2 participants