Replies: 2 comments 6 replies
-
I have updated the version and now I'm getting n error when I try to update the extensions xD
|
Beta Was this translation helpful? Give feedback.
-
The way we are using git in the webui, extensions and scripts have this ability already. The user in this situation would be you, unless you are running a shared instance and somehow expose the clone command (maybe through enabling "custom_scripts.py"). Don't use/allow cors (cross origin) Xss(cross site scripts), which would allow an arbitrary site to use this tab. (Better practice would be to run this in a browser you are not using to browse the web, i.e- If you use firefox to browse, use chrome/safari/chrome dev/edge, just anything different, so a malicious browser extension can't hijack it) https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS Don't copy paste urls into the extensions tab that you don't trust. Don't allow others you don't trust to use your instance of the app. Don't go installing a bunch of the webui extensions, or at least verify in some form before you do. I can, for example, but I won't because I'm using my legal name and it's unique, push an update to some cool extension everyone wants. Then either download mailicious tools, or embed directly, and as long as I never make it obvious, I can open another shell and execute whatever I want on the backend. If you have cors enabled, can listen for a crypto transaction and clipboard jack you, etc. Pretty much what I'm saying is, this actually does not pose a risk in the webui as long as the user (you) don't put things in the extensions fetch from url input. I decided to ask chatgpt if git can be used as an update mechanism, I already know that it shouldn't be, but thought chatgpt would do a better job at explaining than I can. Technically, we need a better update mechanism for extensions, there are too many issues (using git reset --hard which overwrites configs because a regular pull would be rejected if you modified your configs). If we can change this, then we wouldn't need GitPython anymore.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
running "dependabot" reveals a security issue classified as "high" - Gpython module can run code on github as the version of Gpython needs to be updated. Not sure if I should raise this as a bug so wanted others comments here first, thanks
official warning: "GitPython vulnerable to Remote Code Execution due to improper user input validation"
fix: Upgrade GitPython to fix in "requirements_versions.txt" - Upgrade GitPython to version 3.1.30 or later.
Beta Was this translation helpful? Give feedback.
All reactions