π‘οΈ Sentinel: Fix path traversal and symlink hijacking in nexuscli - #229
Conversation
- Validate and sanitize account parameter in nexuscli _cache_path - Enforce canonical layout boundary checks via os.path.commonpath - Add is_symlink() safety checks before chmod operations in nexuscli - Add automated unit test suite tests/test_nexuscli_privileges.py
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Mention Blocks like a regular teammate with your question or request: @blocks review this pull request Run |
|
head_sha: 459d065 Peer review gate (ready for second-pass agents)External reviewers polled: CodeRabbit, Devin, Aikido, Sentry, Copilot. Peer activity (truncated): Downstream: |
π OpenRouter review (
|
|
β
Merged to SHA: Sentinel nexuscli path/symlink harden is live. GitLab status remains non-blocking. BIUDL π |
This PR hardens
nexuscli/core/api.pyagainst path traversal attacks and symlink permission hijacking:accountparameter in_cache_pathto prevent path traversal vectors via account names.os.path.commonpath.is_symlink()before runningchmodon configuration directories, files, and cache paths to protect against symlink dereference hijacking on multi-user systems.tests/test_nexuscli_privileges.pyverifying privilege enforcement, symlink safety, and path traversal prevention.PR created automatically by Jules for task 1144520540131189380 started by @timerloggedout-spec