Skip to content

Harden input-device toggles against hostile USB names - #11875

Open
Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:fix/8139-input-device-name-hardening
Open

Chessing234 wants to merge 1 commit into
omacom:quattrofrom
Chessing234:fix/8139-input-device-name-hardening

Conversation

@Chessing234

@Chessing234 Chessing234 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • USB device names still reached hyprctl eval after the Lua-as-data migration for Security exploit found on YouTube #8139.
  • Reject $ / backtick characters from descriptors and keep the eval payload single-quoted so bash cannot expand them.
  • Regression coverage for the shell-expansion reject path.

Fixes #8139

Test plan

  • bash test/shell.d/toggle-input-device-test.sh
  • Toggle touchpad with a normal device name still works on hardware

Reject shell-expansion characters from USB descriptors and keep hyprctl
eval single-quoted so bash cannot expand them. Closes the YouTube PoC path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security exploit found on YouTube

1 participant