Skip to content

v1.0.6 - Security Hardening

Choose a tag to compare

@msarson msarson released this 02 Mar 16:40
· 15 commits to master since this release

What's Changed

Security Fixes

  • Command injection prevention — All user-supplied values (branch names, commit messages, stash messages, file paths, remote names, URLs, commit hashes, GitHub repo name/description) are now properly escaped before being passed to git/gh commands
  • Push command — Branch name was previously unquoted; now quoted and escaped
  • Browser URL validation — Remote URL is validated to be http:// or https:// only before opening in browser, preventing dangerous protocols ( ile://, javascript:) executing via Process.Start
  • GitKraken launch — UseShellExecute changed to alse so the repo path is not interpreted by the shell
  • GitHub CLI repo creation —
    epoName now quoted and escaped

Bug Fixes

  • Deadlock fix — ExecuteGitHubCLICommand now reads stdout/stderr concurrently to prevent deadlock on large output (same fix applied to ExecuteGitCommand in v1.0.4)
  • Timer resource leak — configDebounceTimer was not being disposed on pane close
  • Debounce race condition — FileSystemWatcher callbacks now use Interlocked.Exchange to safely replace timers across concurrent ThreadPool threads

Changed

  • Branch name validation — Strict allowlist regex (^[a-zA-Z0-9/_-.]+$) replaces the previous weak check that only blocked spaces and ..

Installation

  1. Extract GitPane-v1.0.6.zip
  2. Copy both files to [ClarionRoot]\accessory\addins\GitPane\
  3. Restart the Clarion IDE