Add ComfyUI-TJ_NODE to custom-node-list#2924
Conversation
|
Fixed. Implemented path traversal protection for all affected save paths in:
Changes:
This was implemented as a minimal targeted patch only for save path sanitization. |
# Conflicts: # custom-node-list.json
|
Merge conflicts have been resolved successfully. The PR is now cleanly mergeable and all checks are passing. Thank you for reviewing TJ_NODE! |
|
Hi, could you please review this PR again? I confirmed that the latest ComfyUI-TJ_NODE code now contains the requested path traversal protections:
The PR is mergeable, but the GitHub Actions workflow appears to be in an Thank you! |
|
Hi @ltdrdata, I pushed an additional security hardening commit to the referenced ComfyUI-TJ_NODE repository: designloves2/ComfyUI-TJ_NODE@02d2182 This goes beyond the original write-side path traversal fix and tightens the remaining path handling surfaces:
I also verified the updated code with Could you please approve/re-run the workflow and review PR #2924 again when you have a chance? Thank you! |
|
Thanks for the response. I re-verified the current head. The original However, the hardening commit you referenced (
Please restore the sanitizers and containment helpers from I'll re-evaluate once the sanitizers are back in place across the affected files. |
|
Thank you for the detailed re-review. All four issues have been addressed in commit 959858f. 1.
2.
3. Read-side traversal via absolute path trust 4. |
|
Hi, thank you again for the thorough and patient review — the pointers were extremely helpful. I've pushed a new commit ( Your five items — all addressed
Additional gaps I found and fixed in the same pass
All containment now uses Whenever you have time, I'd be grateful for another look. Thank you for helping make this package safer. |
|
Thanks for the thorough hardening — I re-verified the current head, and the four write-side path-traversal gaps I flagged earlier ( One reachable issue remains — read-side arbitrary file read via the
Please apply the same containment you added on the write side to this read path: reject I'll re-evaluate once the read path is contained. |
Addresses ComfyUI-Manager review (Comfy-Org/ComfyUI-Manager#2924): arbitrary file read via any_type `video` STRING input. - _tj_resolve_media_path(): reject `..` segments and out-of-root absolute paths; validate final path with realpath + commonpath against the input/output/temp roots. Treats the any_type video input as untrusted STRING, so ../../../../etc/passwd no longer escapes to _tj_media_meta_for_path's external-copy branch. - Bump registry to 2.3.4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thanks again for the careful review — the remaining read-side arbitrary file read via Changes in
Verified with unit tests:
Ready for re-evaluation whenever you have a moment — thanks! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a ChangesCustom node registration
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Hi, I would like to add my new custom node ComfyUI-TJ_NODE to the list. Thank you!