Repository navigation
v0.4.1 - Security and Bug Fixes
🔒 Security Improvements
This release focuses on preventing command injection vulnerabilities in all Docker-related operations.
Security Fixes
- Command injection prevention: Migrated all Docker CLI operations from
execSync/execto safespawn/spawnSyncexecution - Input validation: Added comprehensive validation for all Docker endpoints
- Container name/ID format validation (alphanumeric + Docker characters)
- RFC3339 timestamp validation for log queries
- Directory path validation with shell injection prevention
- Path validation utility: New
server/utils/path-validation.tsfor secure directory operations
Bug Fixes
- Icon cache lookup: Fixed
.pngextension handling causing cache misses - Docker port mapping: Improved regex to support all binding formats (IPv4, IPv6, wildcard, specific IPs)
Technical Details
- Replace unsafe shell command execution with argument arrays
- Validate all user inputs before system commands
- Check for shell injection characters (
;,|,&,`,$, etc.) - Enforce absolute paths for directory operations
- Verify directory existence and accessibility
📦 Installation
npx portbd@0.4.1🔗 Related PRs
Full Changelog: v0.4.0...v0.4.1