-
Notifications
You must be signed in to change notification settings - Fork 277
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
sd-hub #394
sd-hub #394
Conversation
first your description is not informative enough your current description
"an Extension for Stable Diffusion WebUI and Forge" "You can Download, Upload, Archive files and that's it" and this is not enough after reading your readme I'm able to grasp what this is trying to do but still I need to be able to know just by reading read me at least roughly some minor fix MAJOR ISSUE: Arbitrary Code Executionit should NOT BE allowed to download override files to ANY directories other than the models directory why this is ACE, I can literally upload an extension if you wish to perform any potentially dangerous operation then it should be blocked behind less of an issue but still potentially is one in some cases |
ugh,, okay |
I still dont understand about that shared.cmd_opts.disable_extension_access |
https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/04903af798f66877f8af00b778e1696c88e517db/modules/shared_cmd_options.py#L17-L18 when performing sensitive operations such as installing / updateing extetnions assert not shared.cmd_opts.disable_extension_access https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/04903af798f66877f8af00b778e1696c88e517db/modules/ui_extensions.py#L23-L24 |
@w-e-w how about current changes. will you agree? https://github.com/gutris1/sd-hub/tree/a |
I'm not sure what you're trying to do here I don't think you get the point "safe directories" basically means directories containing models (lora dir checkpoint ... etc) directory |
I get your point, thats why Im adding something to prevent the extension touching the WINDOWS folder |
it is not just the Windows folder and this is not just for Windows this also applies for Linux and Mac also there's not much point in adding a specific check for Windows directory |
yes, thats right is that okay? |
NO
allowing overwriting of files IS fine as long as it's only within safe directories preferably it should only allow uploading of certain file types based on the target directory, but this is not essential if you wish your extension to do anything more than assert not shared.cmd_opts.disable_extension_access if this assertions fails then it means that webui UI is accessible remotely and the user has not enabled if it's NOT accessible remotely that you can do anything I don't care you either have to only have safe operations, and so whether or not it is remotely accessible it doesn't matter |
is this good now? |
your CheckPath is broken also please open a different PR for this |
like I expected there's major security issues with your upload as long as someone knows the file path ANY file can be uploaded they also seems to be a rather big usability issues in your syntax parseing there are multiple ways that you can fix this |
your |
yeah,, I do planning to block the uploader too after Im done with this downloader |
@w-e-w how about now? |
|
affff, I forgot about that one.. fixed now |
another minor fix didn't find more major issues at the moment however your description is no good your description goes from basically no information to loaded with trivial information don't just copy you readme, because your target audience is different in readme you're supposed to give detailed information as these people are seriously considering your extension but in index people just want a brief understanding of what is this extension about basically it's similar to writing your repo "About", with the key difference being that people know that this is an extension for webui are already
|
thanks again.. I think I'm done now |
Info
https://github.com/gutris1/sd-hub
ps: senpai dont be too harsh on the review
Checklist:
Readme.md
index.json
andextension_template.json
have not been modified.entry
is placed in theextensions
directory with the.json
file extension.