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

exploitDog

github логотип

GHSA-cj55-gc7m-wvcq

Опубликовано: 26 авг. 2024
Источник: github
Github: Прошло ревью
CVSS4: 6.9
CVSS3: 7.2

Описание

req may send an unintended request when a malformed URL is provided

The req library is a widely used HTTP library in Go. However, it does not handle malformed URLs effectively. As a result, after parsing a malformed URL, the library may send HTTP requests to unexpected destinations, potentially leading to security vulnerabilities or unintended behavior in applications relying on this library for handling HTTP requests.

Despite developers potentially utilizing the net/url library to parse malformed URLs and implement blocklists to prevent HTTP requests to listed URLs, inconsistencies exist between how the net/url and req libraries parse URLs. These discrepancies can lead to the failure of defensive strategies, resulting in potential security threats such as Server-Side Request Forgery (SSRF) and Remote Code Execution (RCE).

Пакеты

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

github.com/imroc/req/v3

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

< 3.43.4

3.43.4

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

github.com/imroc/req

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

< 3.43.4

3.43.4

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

github.com/imroc/req/v2

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

< 3.43.4

3.43.4

EPSS

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

6.9 Medium

CVSS4

7.2 High

CVSS3

Дефекты

CWE-20
CWE-918
CWE-94

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

CVSS3: 9.8
nvd
больше 1 года назад

The req package before 3.43.4 for Go may send an unintended request when a malformed URL is provided, because cleanHost in http.go intentionally uses a "garbage in, garbage out" design.

EPSS

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

6.9 Medium

CVSS4

7.2 High

CVSS3

Дефекты

CWE-20
CWE-918
CWE-94