CVE Watchtower

CVE-2026-111055FOSSBilling >= 0.1.0, Time-of-check Time-of-use (TOCTOU) Race Condition

NVD

Vulnerability Summary

Summary A promo code configured as one use per client (`once_per_client`) can be redeemed an unlimited number of times by a single client account through concurrent `POST /api/client/cart/checkout` requests. `Cart\Service::checkoutCart()` validates eligibility with a non-atomic COUNT query (`PromoRedemptionRepository::clientHasActiveCheckoutApplication()`), and the redemption rows are inserted later in `Product\Service::createCheckoutPromoRedemptions()` with no unique constraint or row lock between the check and the insert, so parallel checkouts all pass before any of them records a use. Impact A single client can use a promo code meant for one use per client on as many orders as they can check out at the same time, keeping the discount every time. With a partial discount this means repeated underpayment across many orders. With a 100% or over-value code each order totals zero or less, so no invoice is created and the order can activate without payment, letting one client collect many free services from a code meant for one. If the promo also has a finite global `maxuses`, that same client can consume the shared pool alone, leaving nothing for other clients. Affected Versions FOSSBilling version 0.1.0 through 0.8.7 (all releases to date). Patched Versions 0.8.8 Details Each checkout re-validates the promo in `Cart\Service::checkoutCart()` through `isClientAbleToUsePromo()`. For a `once_per_client` promo the decision comes from a COUNT query in `PromoRedemptionRepository::clientHasActiveCheckoutApplication()`: ```php $count = (int) $this->createQueryBuilder('pr') ->select('COUNT(pr.id)') ->where('IDENTITY(pr.promo) = :promoId') ->andWhere('pr.clientId = :clientId') ->andWhere('pr.phase = :phase') ->andWhere('pr.status IN (:statuses)') ->getQuery() ->getSingleScalarResult(); return $count > 0; ``` The redemption rows are written later in `Product\Service::createCheckoutPromoRedemptions()` with a plain persist and flush. The table carries only plain indexes, nothing between the check and the insert takes a lock, and the check runs before the checkout transaction opens. Concurrent checkouts each read zero and all commit. Damage stops at free provisioning: promos are discount-only and zero-total orders create no invoice or balance. The global limit had the same flaw and was fixed atomically in 0.8.0 via `PromoRepository::incrementUsageIfAvailable()`. The per-client check never got the same treatment. The gap dates to the initial release, which checked `client_order` rows the same way, and the 0.8.3 migration kept the shape. Workarounds There is no complete workaround without patching. Avoid high-value or free-making offers on `once_per_client` promos, and review each promo page redemption list for repeat use by one client, disabling any abused promo to archive it. Acknowledgements Thanks to @DilipMallavarapu for responsibly reporting this vulnerability.
Severity Level
MEDIUM(6.3)
Published Date
Oct 26, 2026
Last Modified
Oct 26, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product checks the state of a resource before using that resource, but the resource state can change between the check and the use in a way that invalidates the results of the check.
CVSS v4.0 Base Metrics — Score 6.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)Low
Availability (Vulnerable System)None
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None

Affected & Patched Versions

Affected Versions
  • FOSSBilling >= 0.1.0, <= 0.8.7
Patched Versions
  • FOSSBilling 0.8.8

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run FOSSBilling >= 0.1.0, and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Oct 26, 2026Published
  • Oct 26, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new FOSSBilling >= 0.1.0, CVEsYou are reading CVE-2026-111055. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 23, 2026 08:00 UTC