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

exploitDog

github логотип

GHSA-h5gm-x9wr-vhcm

Опубликовано: 19 июн. 2026
Источник: github
Github: Прошло ревью
CVSS4: 6.9

Описание

Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass

Summary

The CartController defines a RateLimiter behavior that is only activated when the 'number' POST/GET parameter is explicitly provided.

Details

When an attacker submits coupon codes against the session-based cart (without passing a 'number' parameter), no rate limiting is applied. This allows unlimited attempts to guess coupon codes.

Vulnerable Code resim

resim resim

PoC

Complete instructions, including specific configuration details, to reproduce the vulnerability.

resim

Impact

An attacker can enumerate all coupon codes through automated requests.

Remediation Apply rate limiting unconditionally on actionUpdateCart regardless of whether 'number' is present.

Пакеты

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

craftcms/commerce

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

>= 5.0.0, <= 5.6.4

5.6.5

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

craftcms/commerce

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

>= 4.0.0, <= 4.11.1

4.11.2

EPSS

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

6.9 Medium

CVSS4

Дефекты

CWE-307

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

nvd
9 дней назад

Craft Commerce is an ecommerce platform for Craft CMS. From 4.0.0 until 4.11.2 and 5.6.5, CartController in src/controllers/CartController.php activates its RateLimiter only when the number POST or GET parameter is supplied. An unauthenticated attacker can submit couponCode values to actionUpdateCart for the session-based cart while omitting number, preventing creation of the IP rate-limit identity and allowing unlimited automated coupon-code guessing and enumeration. This issue is fixed in versions 4.11.2 and 5.6.5.

EPSS

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

6.9 Medium

CVSS4

Дефекты

CWE-307