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

exploitDog

github логотип

GHSA-h452-7996-h45h

Опубликовано: 18 янв. 2023
Источник: github
Github: Прошло ревью
CVSS3: 5.3

Описание

cookiejar Regular Expression Denial of Service via Cookie.parse function

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function and other aspects of the API, which use an insecure regular expression for parsing cookie values. Applications could be stalled for extended periods of time if untrusted input is passed to cookie values or attempted to parse from request headers.

Proof of concept:

ts\nconst { CookieJar } = require("cookiejar"); const jar = new CookieJar(); const start = performance.now(); const attack = "a" + "t".repeat(50_000); jar.setCookie(attack); console.log(`CookieJar.setCookie(): ${performance.now() - start}ms`);
CookieJar.setCookie(): 2963.214399999939ms

Пакеты

Наименование

cookiejar

npm
Затронутые версииВерсия исправления

< 2.1.4

2.1.4

Наименование

org.webjars.npm:cookiejar

maven
Затронутые версииВерсия исправления

<= 2.1.3

Отсутствует

EPSS

Процентиль: 19%
0.00059
Низкий

5.3 Medium

CVSS3

Дефекты

CWE-1333

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

CVSS3: 5.3
ubuntu
около 3 лет назад

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function, which uses an insecure regular expression.

CVSS3: 7.5
redhat
около 3 лет назад

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function, which uses an insecure regular expression.

CVSS3: 5.3
nvd
около 3 лет назад

Versions of the package cookiejar before 2.1.4 are vulnerable to Regular Expression Denial of Service (ReDoS) via the Cookie.parse function, which uses an insecure regular expression.

CVSS3: 5.3
debian
около 3 лет назад

Versions of the package cookiejar before 2.1.4 are vulnerable to Regul ...

CVSS3: 5.3
fstec
почти 4 года назад

Уязвимость функции Cookie.parse() библиотеки CookieJar, позволяющая нарушителю вызвать отказ в обслуживании

EPSS

Процентиль: 19%
0.00059
Низкий

5.3 Medium

CVSS3

Дефекты

CWE-1333