Peekaboo/tests/unit/utils
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
..
ai-providers.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
colon-parsing.test.ts feat: Improve window title matching and error messages for URLs with ports 2025-06-08 08:09:47 +01:00
format-preprocessing.test.ts fix: Add defensive validation for invalid image formats with automatic PNG fallback 2025-06-08 07:44:17 +01:00
image-summary.test.ts Enhance Swift testing framework and test coverage 2025-06-07 23:57:26 +01:00
malformed-app-target.test.ts fix: Prevent security vulnerability from malformed app targets 2025-06-08 08:16:39 +01:00
peekaboo-cli.test.ts feat: Add fuzzy matching for application names 2025-06-08 05:22:58 +01:00
server-status.test.ts Implement missing best practices 2025-05-26 23:46:03 +02:00
zod-to-json-schema.test.ts Fix test expectation for unknown type fallback 2025-05-27 01:11:10 +02:00