Skip to content

fix: harden input validation, path traversal, and sensitive file handling#230

Merged
indaco merged 3 commits intomainfrom
fix/security-hardening
Mar 11, 2026
Merged

fix: harden input validation, path traversal, and sensitive file handling#230
indaco merged 3 commits intomainfrom
fix/security-hardening

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Mar 11, 2026

Description

Harden security across multiple subsystems:

  • (gitlog) Validate git references before constructing revision ranges to prevent command injection
  • (pathutil) Resolve symlinks for case-insensitive filesystem safety in path traversal checks
  • (extensionmgr) Skip .env, .secrets, and .key files during extension copy operations
  • (extensionmgr) Set working directory for extension script execution

Related Issue

  • None

Notes for Reviewers

The pathutil change uses filepath.EvalSymlinks with a fallback helper to handle macOS /var -> /private/var resolution. Tests cover both existing and non-existing child paths.

@indaco indaco merged commit 4023e46 into main Mar 11, 2026
7 checks passed
@indaco indaco deleted the fix/security-hardening branch March 11, 2026 21:47
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