Paymenter: Race condition in payWithCredit() enables credit double-spend
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Paymenter | Paymenter | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Paymenter | Paymenter |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-pgcq-8grm-5rx9 | Paymenter has race condition in payWithCredit() that enables credit double-spend |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.214% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Paymenter
Paymenter paymenter |
|
| Vendors & Products |
Paymenter
Paymenter paymenter |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Paymenter is a free and open-source webshop solution for management of hosting services. In versions prior to 1.5.5, the credit payment implementation in app/Livewire/Invoices/Show.php executes a pessimistic row lock (lockForUpdate()) outside of an active database transaction. Because MySQL/MariaDB requires an enclosing transaction to enforce row-level locks, the guard is ineffective. Concurrent payment requests can exploit this race condition to read the same credit balance simultaneously, allowing users to pay multiple invoices using the same credit balance. In database systems like MySQL, a row lock only works inside a formal transaction; without one, the lock is completely ignored. Because there is no active lock, two payment requests sent at the exact same millisecond can look at the database at the same time. Both requests see the original credit balance, decide it is sufficient, and approve the payment. Because the payment processes successfully through ExtensionHelper::addPayment(), the application provisions the corresponding services or digital goods, resulting in direct financial or resource loss to the platform. This issue has been fixed in version 1.5.5. | |
| Title | Paymenter: Race condition in payWithCredit() enables credit double-spend | |
| Weaknesses | CWE-362 | |
| References |
| |
| Metrics |
cvssV3_1
|