CVE-2026-69180: TastyIgniter Forged Webhook Payload Leads To Vulnerability

HIGH
Advisory Identifier: GHSA-v7c9-gjc9-fv7g
CVSS 8.6
CWE-502 CWE-345
Published
Advisory Summary

CVE-2026-69180 is a HIGH (CVSS 8.6) forged webhook payload leads to vulnerability (CWE-502: Deserialization of Untrusted Data) affecting TastyIgniter libraries in the Packagist ecosystem. The issue involves forged webhook payload leads to order fraud without payment. Remediation is available in the latest vendor maintenance releases.

CVE-2026-69180 at a Glance

CVE Identifier CVE-2026-69180
GHSA Identifier GHSA-v7c9-gjc9-fv7g
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product TastyIgniter
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-69180

To remediate this vulnerability, upgrade all affected TastyIgniter dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tastyigniter/ti-ext-payregister fixed: Latest secure release
Upgrade tastyigniter/ti-ext-payregister to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tastyigniter/ti-ext-payregister

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-69180, inspect your project dependencies for TastyIgniter:

inspect dependencies for tastyigniter/ti-ext-payregister

Analyze the terminal output to locate any version of TastyIgniter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In TastyIgniter, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# 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](https://cwe.mitre.org/data/definitions/345.html) | | **Reported** | 2026-04-20 | --- ## Description The Stripe payment gateway webhook handler accepts forged webhook payloads **without signature verification** when the webhook secret is not configured. Because the webhook secret is an optional field (not enforced by validation), an unauthenticated attacker can send a crafted `payment_intent.succeeded` webhook to mark any order as paid without making an actual payment. --- ## Root Cause In `src/Payments/Stripe.php`: ```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): ```php VerifyCsrfToken::except(['ti_payregister/*']); ``` This means the endpoint is both **unauthenticated** and **CSRF-exempt**, making it trivially exploitable from any external origin. --- ## Proof of Concept ### Step 1 — Confirm the webhook secret is not configured Navigate to `/admin/payments/edit/stripe`. The **Test Webhook Secret** and **Live Webhook Secret** fields are empty by default and not required. ### Step 2 — Send a forged webhook ```bash curl -X POST https://[target]/ti_payregister/stripe_webhook/handle \ -H "Content-Type: application/json" \ -d '{ "type": "payment_intent.succeeded", "data": { "object": { "id": "pi_forged_intent", "status": "succeeded", "metadata": { "order_id": 1 } } } }' ``` **Response:** `HTTP 200 — "Webhook Handled"` ### Step 3 — Verify order status After `ProcessStripeWebhookJob` executes (dispatched with a 1-minute delay), the order's **Payment Attempts** tab shows: > *"Payment successful via webhook"* The order is marked as paid and a **Refund** action button appears, confirming the forged webhook was fully processed. ### Validated On | Environment | Details | Result | |---|---|---| | Local instance | TastyIgniter v4.2.1, PHP 8.3.30, MySQL 8.0 | ✅ Order marked `processed = true` | | Official demo | Created via tastyigniter.com demo feature | ✅ HTTP 200, payment log entry created | --- ## 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. --- ## Recommended Fixes ### Option A — Reject webhooks when no secret is configured *(recommended)* ```php protected function getWebhookPayload(): array { if (!$webhookSecret = $this->getWebhookSecret()) { throw new \Exception('Webhook secret is not configured. Webhooks cannot be processed securely.'); } $event = Webhook::constructEvent( request()->getContent(), request()->header('stripe-signature'), $webhookSecret, ); return $event->toArray(); } ``` ### Option B — Make the webhook secret a required field Enforce `test_webhook_secret` / `live_webhook_secret` as required in the payment settings validation rules when Stripe is enabled. ### Option C — Verify via the Stripe API directly Before marking any order as paid, verify the payment intent directly against the Stripe API regardless of webhook signature status. --- ## 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. --- ## Disclosure Timeline | Date | Event | |---|---| | 2026-04-20 | Vulnerability discovered and validated | | 2026-04-20 | Report sent to support@tastyigniter.com | --- > This report was submitted following responsible disclosure practices and was not publicly disclosed prior to vendor notification.

CVE-2026-69180 Affected TastyIgniter Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
tastyigniter/ti-ext-payregister
Packagist
≥ 4.0.0

References

Frequently Asked Questions

What is CVE-2026-69180?
CVE-2026-69180 is a security vulnerability in TastyIgniter involving Forged Webhook Payload Leads to Order Fraud Without Payment under CWE-502: Deserialization of Untrusted Data.
Which TastyIgniter versions are affected?
Affected versions include releases prior to current release patches across affected packages: tastyigniter/ti-ext-payregister.
What version fixes CVE-2026-69180?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is tastyigniter/ti-ext-payregister affected?
Yes, tastyigniter/ti-ext-payregister is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-69180?
CVE-2026-69180 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2026-69180?
CVE-2026-69180 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2026-69180?
Run the dependency tree command: 'inspect dependencies for tastyigniter/ti-ext-payregister'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-v7c9-gjc9-fv7g",
  "modified" : "2026-12-03T00:38:15Z",
  "published" : "2026-12-03T00:38:15Z",
  "aliases" : [ "CVE-2026-69180" ],
  "summary" : "TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment",
  "details" : "# Security Advisory: Forged Webhook Payload Leads to Order Fraud Without Payment\n\n## Summary\n\n| Field | Details |\n|---|---|\n| **Package** | `tastyigniter/ti-ext-payregister` |\n| **Affected File** | `src/Payments/Stripe.php` — `getWebhookPayload()` (lines 741–754) |\n| **Affected Versions** | All current versions (tested on v4.2.1) |\n| **CWE** | [CWE-345 — Insufficient Verification of Data Authenticity](https://cwe.mitre.org/data/definitions/345.html) |\n| **Reported** | 2026-04-20 |\n\n---\n\n## Description\n\nThe Stripe payment gateway webhook handler accepts forged webhook payloads **without signature verification** when the webhook secret is not configured. Because the webhook secret is an optional field (not enforced by validation), an unauthenticated attacker can send a crafted `payment_intent.succeeded` webhook to mark any order as paid without making an actual payment.\n\n---\n\n## Root Cause\n\nIn `src/Payments/Stripe.php`:\n\n```php\nprotected function getWebhookPayload(): array\n{\n    if (!$webhookSecret = $this->getWebhookSecret()) {\n        // No webhook secret configured → payload accepted WITHOUT any verification\n        return json_decode(request()->getContent(), true);\n    }\n\n    // Signature is only verified when the webhook secret IS configured\n    $event = Webhook::constructEvent(\n        request()->getContent(),\n        request()->header('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event->toArray();\n}\n```\n\nWhen 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.\n\nAdditionally, the webhook endpoint is explicitly excluded from CSRF protection in `Extension.php` (line 161):\n\n```php\nVerifyCsrfToken::except(['ti_payregister/*']);\n```\n\nThis means the endpoint is both **unauthenticated** and **CSRF-exempt**, making it trivially exploitable from any external origin.\n\n---\n\n## Proof of Concept\n\n### Step 1 — Confirm the webhook secret is not configured\n\nNavigate to `/admin/payments/edit/stripe`. The **Test Webhook Secret** and **Live Webhook Secret** fields are empty by default and not required.\n\n### Step 2 — Send a forged webhook\n\n```bash\ncurl -X POST https://[target]/ti_payregister/stripe_webhook/handle \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"type\": \"payment_intent.succeeded\",\n    \"data\": {\n      \"object\": {\n        \"id\": \"pi_forged_intent\",\n        \"status\": \"succeeded\",\n        \"metadata\": {\n          \"order_id\": 1\n        }\n      }\n    }\n  }'\n```\n\n**Response:** `HTTP 200 — \"Webhook Handled\"`\n\n### Step 3 — Verify order status\n\nAfter `ProcessStripeWebhookJob` executes (dispatched with a 1-minute delay), the order's **Payment Attempts** tab shows:\n\n> *\"Payment successful via webhook\"*\n\nThe order is marked as paid and a **Refund** action button appears, confirming the forged webhook was fully processed.\n\n### Validated On\n\n| Environment | Details | Result |\n|---|---|---|\n| Local instance | TastyIgniter v4.2.1, PHP 8.3.30, MySQL 8.0 | ✅ Order marked `processed = true` |\n| Official demo | Created via tastyigniter.com demo feature | ✅ HTTP 200, payment log entry created |\n\n---\n\n## Impact\n\n- **Financial theft** — Attackers place orders and receive goods or services without making any payment.\n- **No authentication required** — The webhook endpoint is fully public and CSRF-exempt.\n- **Scalable** — Any `order_id` can be targeted; an attacker only needs to know or enumerate order IDs.\n- **Vulnerable by default** — Webhook secrets are empty on fresh installations, making all new deployments immediately exploitable.\n\n---\n\n## Recommended Fixes\n\n### Option A — Reject webhooks when no secret is configured *(recommended)*\n\n```php\nprotected function getWebhookPayload(): array\n{\n    if (!$webhookSecret = $this->getWebhookSecret()) {\n        throw new \\Exception('Webhook secret is not configured. Webhooks cannot be processed securely.');\n    }\n\n    $event = Webhook::constructEvent(\n        request()->getContent(),\n        request()->header('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event->toArray();\n}\n```\n\n### Option B — Make the webhook secret a required field\n\nEnforce `test_webhook_secret` / `live_webhook_secret` as required in the payment settings validation rules when Stripe is enabled.\n\n### Option C — Verify via the Stripe API directly\n\nBefore marking any order as paid, verify the payment intent directly against the Stripe API regardless of webhook signature status.\n\n---\n\n## Additional Finding: Insecure Deserialization (CWE-502)\n\nFive instances of `unserialize()` were identified **without** the `allowed_classes` restriction across `tastyigniter/core` and `tastyigniter/ti-ext-cart`:\n\n| # | File | Location |\n|---|---|---|\n| 1 | `src/System/Models/Settings.php` | `getValueAttribute()` |\n| 2 | `src/System/Traits/CombinesAssets.php` | `getCache()` |\n| 3 | `src/Main/Classes/MediaLibrary.php` | Cache handling |\n| 4 | `src/Flame/Database/Concerns/HasAttributes.php` | `fromSerialized()` |\n| 5 | `ti-ext-cart/src/Cart.php` | `restore()` |\n\n**Fix:** Add `['allowed_classes' => false]` to all `unserialize()` calls, or migrate to `json_decode()` where the data format permits.\n\n---\n\n## Disclosure Timeline\n\n| Date | Event |\n|---|---|\n| 2026-04-20 | Vulnerability discovered and validated |\n| 2026-04-20 | Report sent to support@tastyigniter.com |\n\n---\n\n> This report was submitted following responsible disclosure practices and was not publicly disclosed prior to vendor notification.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "tastyigniter/ti-ext-payregister"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 4.3.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tastyigniter/TastyIgniter/security/advisories/GHSA-v7c9-gjc9-fv7g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-69180"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tastyigniter/TastyIgniter"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tastyigniter/TastyIgniter/releases/tag/v4.3.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T00:38:15Z",
    "nvd_published_at" : "2026-12-02T15:17:28Z"
  }
}