Vulnerability GHSA-v7c9-gjc9-fv7g

High Risk
HIGH RISK
CVSS Score: 8.6
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
12 hours ago
December 03, 2026 at 12:38 AM UTC
TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment
v4.0.0 and v4.0.1 and v4.0.2 and v4.0.3 and v4.0.4 and v4.0.5 and v4.0.6 and v4.0.7 and v4.0.8 and v4.1.0 and v4.1.1 and v4.1.2 and v4.2.0 and v4.3.0 and v4.3.1 and v4.4.0 and v4.4.1 and v4.4.2 and v4.4.3 and v4.4.4 and v4.4.5
v4.0.0 and v4.0.1 and v4.0.2 and v4.0.3 and v4.0.4 and v4.0.5 and v4.0.6 and v4.0.7 and v4.0.8 and v4.1.0 and v4.1.1 and v4.1.2 and v4.2.0 and v4.3.0 and v4.3.1 and v4.4.0 and v4.4.1 and v4.4.2 and v4.4.3 and v4.4.4 and v4.4.5

Summary

TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment

Details

Security Advisory: Forged Webhook Payload Leads to Order Fraud Without Payment

Summary

Field Details
Package tastyigniter/ti-ext-payregister
Affected File src/Payments/Stripe.php — getWebhookPayload() (lines 741–754)
Affected Versions All current versions (tested on v4.2.1)
CWE CWE-345 — Insufficient Verification of Data Authenticity
Reported 2026-04-20

Root Cause

In src/Payments/Stripe.php:

protected function getWebhookPayload(): array
{
    if (!$webhookSecret = $this->getWebhookSecret()) {
        // No webhook secret configured → payload accepted WITHOUT any verification
        return json_decode(request()->getContent(), true);
    }

    // Signature is only verified when the webhook secret IS configured
    $event = Webhook::constructEvent(
        request()->getContent(),
        request()->header('stripe-signature'),
        $webhookSecret,
    );

    return $event->toArray();
}

When no webhook secret is set, the handler returns the raw, unverified request body directly. The webhook secret fields (test_webhook_secret / live_webhook_secret) are optional in the admin payment settings form — only the Publishable Key and Secret Key are enforced by validation.

Additionally, the webhook endpoint is explicitly excluded from CSRF protection in Extension.php (line 161):

VerifyCsrfToken::except(['ti_payregister/*']);

This means the endpoint is both unauthenticated and CSRF-exempt, making it trivially exploitable from any external origin.

Impact

  • Financial theft — Attackers place orders and receive goods or services without making any payment.
  • No authentication required — The webhook endpoint is fully public and CSRF-exempt.
  • Scalable — Any order_id can be targeted; an attacker only needs to know or enumerate order IDs.
  • Vulnerable by default — Webhook secrets are empty on fresh installations, making all new deployments immediately exploitable.

Additional Finding: Insecure Deserialization (CWE-502)

Five instances of unserialize() were identified without the allowed_classes restriction across tastyigniter/core and tastyigniter/ti-ext-cart:

# File Location
1 src/System/Models/Settings.php getValueAttribute()
2 src/System/Traits/CombinesAssets.php getCache()
3 src/Main/Classes/MediaLibrary.php Cache handling
4 src/Flame/Database/Concerns/HasAttributes.php fromSerialized()
5 ti-ext-cart/src/Cart.php restore()

Fix: Add ['allowed_classes' => false] to all unserialize() calls, or migrate to json_decode() where the data format permits.

This report was submitted following responsible disclosure practices and was not publicly disclosed prior to vendor notification.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

High Risk
2 days ago
TastyIgniter: Mollie payment confirmation does not verify payment-to-order binding or amount, allowing order status forgery
v1.1.0-beta and v1.1.0-beta.2 and v1.1.0-beta.3 and v1.1.0-beta.4 and v1.1.0-beta.5 and v1.1.0-beta.6.1 and v1.1.0-beta.6.2 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.3.0 and v1.3.1 and v1.3.2 and v1.3.3 and v1.3.4 and v1.3.5 and v1.3.6 and v1.4.0 and v1.4.1 and v1.4.2 and v1.4.3 and v1.5.0 and v2.0.0 and v2.1.0 and v2.2.0 and v2.3.0 and v2.3.1 and v2.3.2 and v2.3.3 and v2.3.4 and v2.4.0 and v2.4.1 and v2.5.0 and v2.6.0 and v2.6.1 and v2.6.2 and v2.6.3 and v2.7.0 and v2.7.1 and v2.7.2 and v2.7.3 and v4.0.0-beta.1 and v4.0.0 and v4.0.1 and v4.0.2 and v4.0.3 and v4.0.4 and v4.0.5 and v4.0.6 and v4.0.7 and v4.0.8 and v4.1.0 and v4.1.1 and v4.1.2 and v4.2.0 and v4.3.0 GHSA-whc7-2g23-hfwj
v1.1.0-beta and v1.1.0-beta.2 and v1.1.0-beta.3 and v1.1.0-beta.4 and v1.1.0-beta.5 and v1.1.0-beta.6.1 and v1.1.0-beta.6.2 and v1.2.0 and v1.2.1 and v1.2.2 and v1.2.3 and v1.2.4 and v1.2.5 and v1.3.0 and v1.3.1 and v1.3.2 and v1.3.3 and v1.3.4 and v1.3.5 and v1.3.6 and v1.4.0 and v1.4.1 and v1.4.2 and v1.4.3 and v1.5.0 and v2.0.0 and v2.1.0 and v2.2.0 and v2.3.0 and v2.3.1 and v2.3.2 and v2.3.3 and v2.3.4 and v2.4.0 and v2.4.1 and v2.5.0 and v2.6.0 and v2.6.1 and v2.6.2 and v2.6.3 and v2.7.0 and v2.7.1 and v2.7.2 and v2.7.3 and v4.0.0-beta.1 and v4.0.0 and v4.0.1 and v4.0.2 and v4.0.3 and v4.0.4 and v4.0.5 and v4.0.6 and v4.0.7 and v4.0.8 and v4.1.0 and v4.1.1 and v4.1.2 and v4.2.0 and v4.3.0 GHSA-whc7-2g23-hfwj
View all vulnerabilities for these packages

Timeline

Published
12 hours ago
December 03, 2026 at 12:38 AM UTC
Last Modified
12 hours ago
December 03, 2026 at 12:45 AM UTC