You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently stumbled across an app with an app name containing double quotes, which caused yabai -m query --windows --window to output invalid json. From the source code here, it appears while app window titles are escaped, app names are not.
This has consequences like being able to inject arbitrary data into queries, though I don't think there's much harm that can be done just from that alone.
The text was updated successfully, but these errors were encountered:
This can be reproduced by just setting the Display Name of a macOS app (or CFBundleDisplayName key in Info.plist) to "Hello World", or any other text that includes the double quotes.
Since there's no sanitisation, yabai will thus return:
I've recently stumbled across an app with an app name containing double quotes, which caused
yabai -m query --windows --window
to output invalid json. From the source code here, it appears while app window titles are escaped, app names are not.This has consequences like being able to inject arbitrary data into queries, though I don't think there's much harm that can be done just from that alone.
The text was updated successfully, but these errors were encountered: