Files
illogical-impulse/.config/hypr/hyprland/scripts/ai
Gwendolyn Page a719ca684c fix(ai): Fix JSON injection vulnerability in primary-buffer-query.sh
- Fix critical JSON injection vulnerability by properly escaping clipboard content using jq
- Add content length limiting (2000 chars) to prevent overflow attacks
- Use proper JSON payload construction with jq to ensure safe API calls
- Add silent curl flag and error handling for reliability

This addresses a security issue where malicious clipboard content could break
out of JSON strings and potentially execute arbitrary code.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 17:49:10 -05:00
..