CVE-2026-34737: AVideo: Arbitrary Stripe Subscription Cancellation via Debug Endpoint and retrieveSubscriptions() Bug

Published Mar 31, 2026
·
Updated

Summary

The StripeYPT plugin includes a test.php debug endpoint that is accessible to any logged-in user, not just administrators. This endpoint processes Stripe webhook-style payloads and triggers subscription operations, including cancellation. Due to a bug in the retrieveSubscriptions() method that cancels subscriptions instead of merely retrieving them, any authenticated user can cancel arbitrary Stripe subscriptions by providing a subscription ID.

Details

At plugin/StripeYPT/test.php:4, the endpoint checks only for a logged-in user, not for admin privileges:

php if (!User::isLogged())

At lines 27-29, the endpoint accepts a JSON payload from the request and processes it through the Stripe metadata handler:

php $obj = StripeYPT::getMetadataOrFromSubscription(jsondecode($REQUEST['payload']));

The call chain proceeds as follows: - test.php calls getMetadataOrFromSubscription() - Which calls getSubscriptionId() to extract the subscription ID - Which calls retrieveSubscriptions() to interact with the Stripe API

At StripeYPT.php:933, the retrieveSubscriptions() method contains a critical bug where it cancels the subscription instead of just retrieving it:

php $response = $sub->cancel();

This same bug also affects the production webhook processing path via processSubscriptionIPN(), meaning both the debug endpoint and the live webhook handler can trigger unintended cancellations.

Proof of Concept

1. Log in as any regular (non-admin) user and obtain a session cookie.

2. Send a crafted payload to the test endpoint with a target subscription ID:

bash curl -b "PHPSESSID=USERSESSION" \ "https://your-avideo-instance.com/plugin/StripeYPT/test.php" \ -d 'payload={"data":{"object":{"id":"subTARGETSUBSCRIPTIONID","customer":"cusCUSTOMERID"}}}'

3. The endpoint processes the payload, calls retrieveSubscriptions(), and the subscription is cancelled via the Stripe API.

4. To enumerate subscription IDs, check if the application exposes them through other endpoints or use predictable patterns:

bash Check user subscription details if accessible curl -b "PHPSESSID=USERSESSION" \ "https://your-avideo-instance.com/plugin/StripeYPT/listSubscriptions.php"

5. The Stripe subscription is now cancelled. The affected user loses access to their paid features.

Impact

Any logged-in user can cancel arbitrary Stripe subscriptions belonging to other users. This causes direct financial damage to the platform operator (lost subscription revenue) and service disruption for paying subscribers who lose access to premium features. The debug endpoint should have been removed from production or restricted to admin-only access, and the retrieveSubscriptions() method should retrieve rather than cancel subscriptions.

- CWE-862: Missing Authorization - Severity: Medium

Recommended Fix

Two changes are needed:

1. Restrict the debug endpoint to admins at plugin/StripeYPT/test.php:4:

php // plugin/StripeYPT/test.php:4 if (!User::isAdmin())

Change User::isLogged() to User::isAdmin() so only administrators can access the debug endpoint.

2. Fix the retrieval bug at StripeYPT.php:933:

Remove the $sub->cancel() call from retrieveSubscriptions() so that the function only retrieves subscription data without cancelling it:

php // StripeYPT.php:933 - remove the following line: // $response = $sub->cancel();

The retrieveSubscriptions() method should retrieve subscription information, not cancel subscriptions as a side effect.

--- Found by aisafe.io

Other sources

WWBN AVideo is an open source video platform. In versions 26.0 and prior, the StripeYPT plugin includes a test.php debug endpoint that is accessible to any logged-in user, not just administrators. This endpoint processes Stripe webhook-style payloads and triggers subscription operations, including cancellation. Due to a bug in the retrieveSubscriptions() method that cancels subscriptions instead of merely retrieving them, any authenticated user can cancel arbitrary Stripe subscriptions by providing a subscription ID. At time of publication, there are no publicly available patches.

MITRE

Affected Software

4 affected components
WWBN AVideo<=26.0
WWBN StripeYPT plugin<=26.0
WWBN AVideo<=26.0
composer/wwbn/avideo<=26.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In plugin/StripeYPT/test.php at the debug endpoint, replace the current logged-in check (User::isLogged()) with an admin check (User::isAdmin()) so only administrators can access the endpoint.

    AVideo StripeYPT plugin (plugin/StripeYPT/test.php) Authorization check at test.php:4 = Admin-only (User::isAdmin())
  2. Configuration

    In StripeYPT.php at StripeYPT.php:933, remove the `$sub->cancel()` call from the `retrieveSubscriptions()` method so it only retrieves subscription information and does not cancel subscriptions.

    AVideo StripeYPT plugin (StripeYPT.php) retrieveSubscriptions() behavior at StripeYPT.php:933 = Retrieve only; remove cancellation side effect

Event History

Mar 31, 2026
CVE Published
via MITRE·08:53 PM
Data Sourced
via MITRE·08:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
Apr 1, 2026
Advisory Published
via GitHub·09:06 PM
Data Sourced
via GitHub·09:06 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-34737?

CVE-2026-34737 has a high severity rating due to the ability of logged-in users to cancel Stripe subscriptions through an unsecured debug endpoint.

2

How do I fix CVE-2026-34737?

To fix CVE-2026-34737, upgrade to AVideo version 26.1 or later, which addresses the vulnerability by securing the debug endpoint.

3

Who is affected by CVE-2026-34737?

CVE-2026-34737 affects all users of AVideo version 26.0 and prior versions using the StripeYPT plugin.

4

What do attackers gain from exploiting CVE-2026-34737?

Attackers exploiting CVE-2026-34737 can arbitrarily cancel subscriptions for users on an AVideo platform, leading to financial loss and user trust issues.

5

Is there a patch available for CVE-2026-34737?

Yes, a patch for CVE-2026-34737 is available by updating to the latest version of AVideo that resolves the identified security issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203