Уязвимость «неправильная нейтрализация ввода во время создания веб-страницы» (XSS) в absinthe-graphql absinthe_plug позволяет выполнять отраженные межсайтовые сценарии через интерфейс GraphiQL.
'Elixir.Absinthe.Plug.GraphiQL':js_escape/1 в lib/absinthe/plug/graphiql.ex экранирует одинарные кавычки и символы новой строки в параметре GET запроса перед встраиванием его во встроенную строку JavaScript, но не экранирует обратную косую черту. Злоумышленник может обойти экранирование, добавив к кавычке обратную косую черту (например, \'), выйдя из строкового контекста и выполнив произвольный JavaScript в браузере жертвы.
Эта проблема затрагивает absinthe_plug: с 1.2.0 до 1.5.10.
Показать оригинальное описание (EN)
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface. Absinthe.Plug.GraphiQL.js_escape/1 in lib/absinthe/plug/graphiql.ex escapes single quotes and newlines in the query GET parameter before embedding it in an inline JavaScript string, but does not escape backslashes. An attacker can bypass the escaping by prefixing a quote with a backslash (e.g. \'), breaking out of the string context and executing arbitrary JavaScript in the victim's browser. This issue affects absinthe_plug: from 1.1.1 before 1.5.10.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Absinthe-Graphql Absinthe.Plug
cpe:2.3:a:absinthe-graphql:absinthe.plug:*:*:*:*:*:*:*:*
|
1.2.0
|
1.5.10
|