Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2024-31207

Опубликовано: 04 апр. 2024
Источник: redhat
CVSS3: 5.9

Описание

Vite (French word for "quick", pronounced /vit/, like "veet") is a frontend build tooling to improve the frontend development experience.server.fs.deny does not deny requests for patterns with directories. This vulnerability has been patched in version(s) 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10 and 2.9.18.

A flaw was found in the Node.js Vite package. When configuring the "server.fs.deny" server option to deny requests that include a pattern with directories such as /foo/**/*, the requests were still being allowed. This can potentially expose files or directories containing sensitive information. Only apps setting a custom "server.fs.deny" that includes a pattern with directories, and explicitly exposing the Vite dev server to the network using --host or server.host config option are affected.

Отчет

This issue is considered of moderate severity due to its potential to expose sensitive files or directories under specific conditions. The vulnerability arises when a custom server.fs.deny pattern including directories, such as /foo/**/*, fails to block access as intended. This flaw can only be exploited if the Vite dev server is explicitly exposed to the network via the --host or server.host options. Therefore, the issue requires both a specific server configuration and intentional network exposure, which mitigates the likelihood of widespread exploitation but still poses a significant risk in environments where these conditions are met, potentially leading to unauthorized access to sensitive data.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Build of Keycloakorg.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-200
Дефект:
CWE-284
https://bugzilla.redhat.com/show_bug.cgi?id=2273531vitejs: "server.fs.deny" configuration does not deny requests that include patterns

5.9 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.9
nvd
почти 2 года назад

Vite (French word for "quick", pronounced /vit/, like "veet") is a frontend build tooling to improve the frontend development experience.`server.fs.deny` does not deny requests for patterns with directories. This vulnerability has been patched in version(s) 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10 and 2.9.18.

CVSS3: 5.9
github
почти 2 года назад

Vite's `server.fs.deny` did not deny requests for patterns with directories.

CVSS3: 5.9
fstec
почти 2 года назад

Уязвимость локального сервера разработки приложений Vite, связанная с недостатками контроля доступа, позволяющая нарушителю выполнить произвольный код

5.9 Medium

CVSS3