Развертывание open-vsx.org вернуло Access-Control-Allow-Origin, отражающий запрашиваемый источник вместе с Access-Control-Allow-Credentials: верно для аутентифицированных конечных точек /user/. Таким образом, страница любого происхождения может выдавать сертифицированные запросы в службу в браузере зарегистрированного пользователя и читать ответы. Этот открытый /user (имя входа, аватар, домашняя страница, токены URL), /user/tokens, /user/namespaces, /user/extensions, /user/search/{name и /user/namespace/{name}/members, и - потому что /user/csrf был читабельным таким же образом - позволил устранить защиту CSRF на конечных точках записи.
Связав их, злоумышленник может вызвать /user/token/create и удалить токен личного доступа с публикацией и удалением прав над пространствами имен жертвы. Заголовки были выпущены CDN/краем, а не приложением: наборы программного обеспечения Open VSX позволяют Credentials(true) ровно в одном месте, против одного точного источника, полученного из ovsx.webui.url, и не определяют отображение CORS на /user/ за его пределами. Никакая конфигурация программного обеспечения не производит отражения происхождения с учетными данными.
Показать оригинальное описание (EN)
The open-vsx.org deployment returned Access-Control-Allow-Origin reflecting the requesting origin together with Access-Control-Allow-Credentials: true on the authenticated /user/ endpoints. A page on any origin could therefore issue credentialed requests to the service in a logged-in user's browser and read the responses. This exposed /user (login name, avatar, homepage, tokens URL), /user/tokens, /user/namespaces, /user/extensions, /user/search/{name} and /user/namespace/{name}/members, and — because /user/csrf was readable the same way — allowed the CSRF protection on write endpoints to be defeated. Chaining the two, an attacker page could call /user/token/create and exfiltrate a personal access token carrying publish and delete rights over the victim's namespaces. The headers were emitted by the CDN/edge layer, not by the application: the Open VSX software sets allowCredentials(true) in exactly one place, against a single exact origin derived from ovsx.webui.url, and defines no CORS mapping on /user/ beyond it. No configuration of the software produces origin reflection with credentials.
Характеристики атаки
Последствия
Строка CVSS v4.0