Anyquery - это движок запросов SQL, построенный на основе SQLite. До 0.4.5, аутентифицированные пользователи с доступом INSERT или UPDATE к затронутым виртуальным таблицам macOS могут выполнять команды операционной системы, потому что плагин Chrome и эквивалентные варианты Brave, Edge и Safari интерполируют контролируемый SQL источник URL в AppleScript или JXA, переданный osascript. In plugins/chrome/tabs.go, tabsTable.Insert() passes the URL through fmt.Sprintf(newTabScript, url), and tabsTable.Update() uses fmt.Sprintf(setURLScript, pk, url).
URL, содержащий символы цитаты и новой строки, может вырваться из заданной строки или записи свойства и добавить операторы сценария, что приводит к произвольному выполнению команды с привилегиями процесса anyquery на хосте macOS. Эта проблема исправлена в версии 0.4.5.
Показать оригинальное описание (EN)
Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, authenticated users with INSERT or UPDATE access to affected macOS virtual tables can execute operating-system commands because the Chrome plugin and equivalent Brave, Edge, and Safari variants interpolate a SQL-controlled URL into AppleScript or JXA source passed to osascript. In plugins/chrome/tabs.go, tabsTable.Insert() passes the URL through fmt.Sprintf(newTabScript, url), and tabsTable.Update() uses fmt.Sprintf(setURLScript, pk, url). A URL containing quote and newline characters can break out of the intended string or property record and append script statements, resulting in arbitrary command execution with the privileges of the anyquery process on the macOS host. This issue is fixed in version 0.4.5.
Характеристики атаки
Последствия
Строка CVSS v3.1