Peekaboo/peekaboo-cli/Sources/peekaboo
Peter Steinberger 17dea6ad79 fix: Prevent security vulnerability from malformed app targets
Addresses critical edge case where malformed app targets with multiple leading colons
(e.g., "::::::::::::::::Finder") created empty app names that would match ALL system
processes. This could potentially expose sensitive information or cause unintended
system-wide captures.

Key improvements:
- Enhanced app target parsing to validate non-empty app names
- Added fallback logic to extract valid app names from malformed inputs
- Default to screen mode when all parts are empty (security-first approach)
- Comprehensive test coverage for edge cases
- Improved backward compatibility with hidden path parameters

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 08:16:39 +01:00
..
ApplicationFinder.swift feat: Improve error propagation and debugging for system-level failures 2025-06-08 07:08:35 +01:00
FileNameGenerator.swift fix: Prevent security vulnerability from malformed app targets 2025-06-08 08:16:39 +01:00
ImageCommand.swift feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
ImageSaver.swift fix: Prevent security vulnerability from malformed app targets 2025-06-08 08:16:39 +01:00
JSONOutput.swift Enhance error handling with specific exit codes and user-friendly messages 2025-06-07 22:44:07 +01:00
ListCommand.swift style: Apply SwiftFormat formatting 2025-06-08 07:29:37 +01:00
Logger.swift Apply SwiftFormat and fix all SwiftLint violations 2025-06-08 00:18:23 +01:00
main.swift Prepare release 2025-05-27 00:21:29 +02:00
Models.swift feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
OutputPathResolver.swift fix: Correct error handling for path traversal and file system errors 2025-06-08 08:05:03 +01:00
PermissionErrorDetector.swift fix: Prevent security vulnerability from malformed app targets 2025-06-08 08:16:39 +01:00
PermissionsChecker.swift style: Apply SwiftFormat formatting 2025-06-08 07:29:37 +01:00
ScreenCapture.swift fix: Correct error handling for path traversal and file system errors 2025-06-08 08:05:03 +01:00
Version.swift chore: Bump version to 1.0.0-beta.20 2025-06-08 07:27:43 +01:00
WindowManager.swift feat: Add fuzzy matching for application names 2025-06-08 05:22:58 +01:00