Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as administrator
-
DeliveryNavigate to /cpanel/discounts
-
ExploitCreate fixed_amount discount with negative value
-
ExecutionApply discount code to cart or order
-
PersistDiscountCalculator.php passes negative value through min() without floor check
-
ImpactCalculate.php subtracts negative discount, inflating order total
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires authenticated administrator access to the Shopper Framework control panel; the attacker must be able to create or modify discount records at /cpanel/discounts, a privilege restricted to admin-level accounts. A secondary prerequisite is that the malformed discount code must subsequently be applied to a cart or order within whatever storefront application consumes the framework; because Shopper ships with no bundled customer interface, whether this second step is reachable by non-admin users is entirely dependent on the specific storefront implementation and is not confirmed by the advisory. The vulnerability does not affect deployments where the admin panel is inaccessible to untrusted parties or where discount creation is not delegated to potentially hostile administrators. |
| Impact | The provided CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N scores 6.5 and the I:H rating for integrity impact is justified by direct financial data manipulation. However, PR:L (low privilege) is inconsistent with the advisory reproduction steps, which explicitly require logging in as an administrator and navigating /cpanel/discounts - a route restricted to admin-level accounts; PR:H would be a more accurate representation of the attack surface. No CISA KEV listing and no EPSS score are available in the input data, so exploitation probability cannot be quantified beyond noting the absence of active-exploitation signals. The realistic risk is moderate-to-low: a valid admin account is a hard prerequisite, Shopper is a niche framework with a small production footprint, and the described impact is financial data integrity manipulation rather than system compromise. The advisory explicitly notes that because Shopper is headless and ships no customer storefront, whether unauthenticated customers can trigger the inflated-total path depends entirely on the consuming application's implementation - that exploitation path is unconfirmed. |
| Exploit ScenarioDerived | An administrator (or an attacker with stolen admin credentials) navigates to /cpanel/discounts, creates a new fixed_amount discount with a value of -99,999,999, and shares the resulting coupon code. When a shopper applies the code at checkout, the cart's DiscountCalculator.php subtracts the negative discount from the subtotal - effectively adding approximately $100 million to the order total - producing a grossly inflated charge. No specialized exploit tooling is required; the reproduction steps use only standard admin UI interaction as documented in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 11, 2026
Shopper Framework versions prior to 2.9.0 permit authenticated administrators to create fixed-amount discount records with negative values through the /cpanel/discounts control panel, bypassing all server-side validation. The malformed values persist to the sh_discounts database table and flow unchecked through DiscountCalculator.php, where PHP's min() built-in lacks a lower-bound guard; a negative discount (e.g., -$99,999,999) causes the subtraction in Calculate.php to inflate rather than reduce order totals (subtotal 10,000 − discount −5,000 = 15,000). No public exploit code or CISA KEV listing exists; the issue is fixed in version 2.9.0.
RemediationAI
Upgrade to shopper/framework version 2.9.0 or later, which is the vendor-confirmed patched release per GitHub Advisory GHSA-5vf4-452p-jjhf (https://github.com/shopperlabs/shopper/security/advisories/GHSA-5vf4-452p-jjhf). If immediate upgrade is not feasible, add application-level validation enforcing that fixed_amount discount values satisfy value > 0 and that percentage discounts fall strictly in the range (0, 100] before any record is persisted to sh_discounts; this prevents new malformed records from entering the pipeline. Additionally, audit existing sh_discounts table rows for any negative discount values and remove or correct them, because pre-existing malformed records will continue to affect order calculations even after upgrading. Restricting /cpanel/discounts write access to the smallest necessary set of trusted administrators limits the opportunity for accidental or deliberate introduction of negative values.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Shopper Framework is a headless e-commerce administration package for Laravel/PHP distributed as the Composer package shopper/framework. The root cause (CWE-20, Improper Input Validation) resides in two files: vendor/shopper/cart/src/Discounts/DiscountCalculator.php assigns $fixedAmount = $discount->value directly from the database and then applies only min($fixedAmount, $applicableSubtotal) - a cap-at-subtotal guard with no positive-value floor - so min(-9999999900, 10000) returns the full negative amount. Those adjustment values are batch-inserted via CartLineAdjustment::query()->insert($adjustments). Downstream, vendor/shopper/cart/src/Pipelines/Calculate.php computes max(0, $context->subtotal - $context->discountTotal), where a negative discountTotal makes the subtraction an addition, bypassing the max(0,...) floor. No validation occurs at any of the three stages: creation, persistence to sh_discounts, or calculation.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Admin authentication explicitly required per advisory reproduction steps, correcting input PR:L to PR:H; no confidentiality or availability impact applies.
Primary rating from Vendor (https://github.com/shopperlabs/shopper).
CVSS VectorVendor: https://github.com/shopperlabs/shopper
DescriptionCVE.org
Summary
The Shopper Framework discount management functionality accepts negative discount values without server-side validation.
It was confirmed that negative fixed-amount discounts can be created through the administrative interface, persisted to the database, and subsequently processed by the cart/order calculation pipeline.
The application appears to assume that discount values are always positive but does not enforce this assumption during creation, storage, or calculation.
As a result, malformed discount records can influence financial calculations and produce unintended order totals.
---
Affected Product
Package: shopper/framework
Version Tested: 2.8.1
---
Vulnerability Type
- Business Logic Vulnerability
- Improper Input Validation (CWE-20)
---
Description
While reviewing the discount functionality, it was discovered that the application accepts negative discount values through the administrative interface.
Example values tested:
-50.00
-99,999,999.00The application accepted these values without validation and stored them in the database.
Example records observed in the sh_discounts table:
1 | QCZ5Y3HESM | fixed_amount | -5000
4 | TOZKAHCB4S | fixed_amount | -9999999900This demonstrates that negative discount values are successfully persisted.
---
Steps to Reproduce
1. Create a Discount
Login as an administrator.
Navigate to:
/cpanel/discountsCreate a new discount with the following values:
Type: fixed_amount
Value: -99999999Save the discount.
2. Observe Successful Creation
The discount is accepted by the application and displayed in the administration interface.
Example:
Code: TOZKAHCB4S
Amount: -$99,999,999.003. Verify Database Persistence
Inspect the database:
select * from sh_discounts;Observed entry:
TOZKAHCB4S | fixed_amount | -9999999900---
Technical Analysis
Discount Calculation
File:
vendor/shopper/cart/src/Discounts/DiscountCalculator.phpObserved code:
$fixedAmount = $discount->value;The value is later processed without validation:
$fixedAmount = min($fixedAmount, $applicableSubtotal);When a negative value is supplied:
min(-9999999900, 10000)returns:
-9999999900allowing the negative value to continue through the calculation pipeline.
The resulting adjustment values are inserted into the database:
CartLineAdjustment::query()->insert($adjustments);No validation was identified to ensure that discount amounts are positive before calculations occur.
---
Final Total Calculation
File:
vendor/shopper/cart/src/Pipelines/Calculate.phpObserved logic:
$context->total = max(
0,
$context->taxInclusive
? $context->subtotal - $context->discountTotal
: $context->subtotal - $context->discountTotal + $context->taxTotal
);Because negative discount values are allowed to reach this stage, financial calculations are performed using malformed discount data.
Example:
Subtotal = 10000
DiscountTotal = -5000Resulting calculation:
10000 - (-5000)Result:
15000This demonstrates that negative discount values directly affect order total calculations.
---
Impact
The following was confirmed:
- Negative discount values are accepted.
- Negative discount values are persisted.
- Negative discount values are processed by the discount calculation engine.
- Negative discount values affect order total calculations.
Potential consequences include:
- Incorrect pricing calculations.
- Financial data integrity issues.
- Unexpected order totals.
- Violated assumptions within downstream pricing logic.
- Future vulnerabilities if additional components assume discount values are always positive.
Because Shopper is a headless e-commerce administration framework and does not ship with a customer-facing storefront, it was not verified a customer-facing exploitation path.
However, malformed discount records currently propagate through pricing calculations without validation.
---
Recommendation
Implement server-side validation enforcing positive discount values before persistence and before entering the calculation pipeline.
Suggested validation:
Fixed Amount Discounts
value > 0Percentage Discounts
0 < value <= 100Additionally, existing discount records should be validated before calculation to prevent malformed data from influencing pricing logic.
---
Environment
Shopper Framework 2.8.1
Laravel 12.61.1
PHP 8.4.16
SQLiteThreat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-78917
GHSA-5vf4-452p-jjhf
NVD
CVE.org
EPSS
Exploit-DB