Skip to content

RigShare 1.3.1: refuse folder paths outside the workspace - #1

Merged
xiaodoudou merged 2 commits into
masterfrom
security-path-hardening
Oct 8, 2026
Merged

xiaodoudou merged 2 commits into
masterfrom
security-path-hardening

Conversation

@xiaodoudou

Copy link
Copy Markdown
Owner

Fixes the issue raised on the ComfyUI-Manager listing (Comfy-Org/ComfyUI-Manager#3344): folder routes built paths from request values, so on Windows a drive prefix could escape the workflows folder.

  • safe_join() refuses colon/.. segments and requires the realpath to stay under the workflows root; used by every folder route and the listing
  • Windows aliases (case, trailing dots/spaces, 8.3 names) are normalised before permission checks
  • Stricter new usernames/folder names (no trailing dot, no device names, case-insensitive uniqueness)
  • Tests: workspace, jwt, stats, and HTTP-level escape attempts

Python suite (excluding test_server.py, which hangs locally with or without this change) and JS tests pass.

@xiaodoudou
xiaodoudou merged commit 1befdca into master Oct 8, 2026
2 checks passed
@xiaodoudou
xiaodoudou deleted the security-path-hardening branch October 8, 2026 08:35
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.

1 participant