Skip to content

fix: add path traversal validation for config and extensions#224

Merged
indaco merged 2 commits intomainfrom
fix/security-hardening
Mar 9, 2026
Merged

fix: add path traversal validation for config and extensions#224
indaco merged 2 commits intomainfrom
fix/security-hardening

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Mar 9, 2026

Description

Reject directory traversal (..) in two user-controlled path inputs:

  • config file path field validated during loadConfig()
  • extension URL subdirectory validated during InstallFromURL()

Also replaces a raw fmt.Sprintf path join with filepath.Join for the extension subdirectory.

Related Issue

  • None

Notes for Reviewers

  • Both checks use filepath.Clean before inspecting for .. to catch normalized traversal

@indaco indaco merged commit 9d3e567 into main Mar 9, 2026
7 checks passed
@indaco indaco deleted the fix/security-hardening branch March 9, 2026 17:38
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