Add ComfyUI-PixlStash to custom-node-list.json
- Loads images and metadata from a PixlStash database via the REST API.
- Saves images and metadata back to the database via the REST API.
- Stores tokens and URL in ComfyUI settings
- Nodes for semantic search and likeness search
- Node: https://github.com/Pikselkroken/ComfyUI-PixlStash/
- PixlStash: https://github.com/Pikselkroken/pixlstash/
I was made aware that the node pack was flagged due to the token secrets being injected into Javascript instead of Python in 1.1.0 -> 1.1.2.
I pushed a new 1.1.3 that addresses this.
Those changes did not help so I got rid of all environment variable reading instead... so 1.1.5 should not be flagged.
- Write-side path traversal —
filename_prefixis a free STRING input onPixlStashPictureSaver(OUTPUT_NODE=True) and flows unmodified into the filename (f"{filename_prefix}_..."), thenos.path.join(temp_dir, fname)+open(path, "wb")with noos.path.basename(), nocommonpathcontainment, no..rejection. A prefix like../../../etc/cron.d/xescapestemp_dir, allowing arbitrary-location file writes.- https://github.com/Pikselkroken/ComfyUI-PixlStash/blob/1afa2fe42304419982f9f5bb3e2079d98a2d509a/nodes/picture_saver.py#L54
- https://github.com/Pikselkroken/ComfyUI-PixlStash/blob/1afa2fe42304419982f9f5bb3e2079d98a2d509a/nodes/picture_saver.py#L139
- https://github.com/Pikselkroken/ComfyUI-PixlStash/blob/1afa2fe42304419982f9f5bb3e2079d98a2d509a/nodes/picture_saver.py#L155-L158
Please sanitize filename_prefix with os.path.basename() (or reject any .. / / / \ characters) before forming the filename.
Thanks!
I used folder_paths.get_save_image_path() and added a couple of other security fixes.
Due to merge conflicts, I've added the entry for ComfyUI-PixlStash to custom-node-list.json directly, using the title and description from this PR.
Closing this PR — the nodepack is now registered.