Skip to main content

AVideo PayPalYPT Plugin CVE-2026-43883

MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-05-05 https://github.com/WWBN/AVideo GHSA-958h-qp3x-q4gj
4.2
CVSS 3.1 · Vendor: https://github.com/WWBN/AVideo
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain AVideo user credentials
  2. Delivery
    Authenticate to AVideo instance
  3. Exploit
    Discover victim's PayPal agreement ID from logs or email
  4. Install
    Send POST request to agreementCancel.json.php with victim's agreement ID
  5. C2
    Server calls PayPalYPT::cancelAgreement()
  6. Execute
    PayPal API suspends agreement
  7. Impact
    Victim's subscription becomes inactive

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires the following concrete, specific conditions: (1) the attacker must be an authenticated user - any registered account in AVideo qualifies (free-tier, commenter, subscriber, or signup-created account); (2) the PayPalYPT plugin must be installed and enabled on the target instance; (3) the attacker must possess the victim's PayPal agreement ID, which is a 17-character alphanumeric identifier (format: I-XXXXXXXXXX) that leaks through error logs (logged in agreementCancel.json.php:34 and webhook.php), PayPal receipt emails, or administrative payment screens; (4) the victim's agreement must be active (not already canceled) at PayPal. No CSRF token is required. No special configuration is needed beyond default plugin enablement. The defect is not limited to specific AVideo versions or deployment modes; any instance running PayPalYPT with the vulnerable file is exploitable. Authentication is the primary limiting factor-unauthenticated attackers cannot exploit this. Agreement ID discoverability is secondary but not a strong barrier given error log leakage in normal operation.

Impact

This vulnerability carries moderate real-world risk despite the CVSS 4.2 score. The CVSS vector (AV:N/AC:H/PR:L/UI:N/S:U) correctly captures network accessibility and the requirement for low-privilege authentication (PR:L), but the AC:H (High Complexity) rating appears to conflict with the straightforward attack requiring only an agreement ID discovery. The defect is purely an authorization gap-not a complex technical exploit-which suggests the AC rating may reflect intentional complexity assumptions rather than actual exploit difficulty. EPSS data is not provided but the real-world risk is elevated because: (1) the fix is simple and vendors typically patch authorization flaws quickly, (2) authentication is required but the threat model includes any registered user (free-tier accounts, commenters, subscribers), (3) agreement IDs are legitimately discoverable through error logs and administrative screens, reducing the complexity assumption, and (4) impact is direct revenue and service loss. The KEV listing and patch availability indicate vendor awareness and active remediation. This is not a high-CVSS-but-low-real-risk issue; it is a straightforward, reproducible authorization bypass with business-critical impact that defenders should prioritize for patching.

Exploit ScenarioDerived

An attacker with a free or low-privilege registered account logs into an AVideo instance using credentials obtained through registration (signUp allows account creation without verification). The attacker discovers a victim's PayPal agreement ID through one of several legitimate information-disclosure vectors: an error log entry visible in an admin export, a PayPal receipt email forwarded or leaked, or a payment-history screen accessible to support staff. The attacker sends a POST request to plugin/PayPalYPT/agreementCancel.json.php with the victim's agreement ID. The endpoint immediately invokes PayPalYPT::cancelAgreement(), which communicates with PayPal's API and suspends the agreement. The victim's subscription becomes inactive within seconds, and recurring charges stop at PayPal. The attacker receives no error and the action leaves minimal audit trail beyond the error log entry. The platform operator detects revenue loss retrospectively.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Insecure Direct Object Reference (IDOR) in AVideo's PayPalYPT plugin allows any authenticated user to cancel arbitrary PayPal billing agreements belonging to other users by supplying a victim's agreement ID to the agreementCancel.json.php endpoint. An attacker can silently suspend a victim's recurring subscription without authorization, causing revenue loss to the platform operator and service interruption to the victim. The vulnerability exists because the endpoint only checks that the user is logged in, but fails to verify ownership of the agreement being canceled, despite a sister endpoint (PayPalAgreementCancel.json.php) implementing the correct authorization check.

RemediationAI

Vendor-released patch available: Apply the fix from GitHub commit 0da3dcff1eda2f497694bf82b559829471c292c2, which ports the ownership authorization check from PayPalAgreementCancel.json.php into the vulnerable endpoint. The patch adds the line if (!User::isAdmin() && !Subscription::isAgreementFromUser($_REQUEST['agreement'], User::getId())) { die; } after the empty-check, ensuring only the agreement owner or an admin can cancel any given agreement. The recommended approach is to delete the duplicate agreementCancel.json.php entirely and update the JavaScript caller in subscriptions_list.php:84 to POST to the already-protected PayPalAgreementCancel.json.php endpoint with the expected agreement_id field instead of agreement. This eliminates the duplicate endpoint and reduces attack surface. Immediate temporary workaround (if patch cannot be deployed immediately) is to restrict access to the vulnerable endpoint at the web server level using .htaccess (Apache) or location blocks (nginx) to deny all access except from trusted admin IPs, accepting that users cannot cancel agreements from the UI until the patch is deployed. Implement error log monitoring to detect exploitation attempts; the vulnerable endpoint writes agreement details to error logs at line 34, which may reveal attack patterns.

Affected Packages

composer wwbn/avideo no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The AVideo PayPalYPT plugin integrates PayPal recurring billing subscriptions. The plugin maintains two nearly-identical endpoints for canceling agreements: PayPalAgreementCancel.json.php (correctly protected) and agreementCancel.json.php (vulnerable). The vulnerable endpoint accepts a POST parameter agreement containing a PayPal agreement ID and passes it directly to PayPalYPT::cancelAgreement() without verifying that the logged-in user's users_id matches the agreement owner. The method calls PayPal's Agreement::suspend() API unconditionally, immediately suspending the billing agreement at PayPal's servers regardless of the requester's relationship to the agreement. This is a classic IDOR vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key). Agreement IDs leak through multiple vectors including error logs, PayPal email receipts, and administrative payment screens, making them discoverable by low-privilege users.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/WWBN/AVideo) PRIMARY 4.2 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L

Primary rating from Vendor (https://github.com/WWBN/AVideo) · only source for this CVE.

CVSS VectorVendor: https://github.com/WWBN/AVideo

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

DescriptionCVE.org

Summary

plugin/PayPalYPT/agreementCancel.json.php cancels a PayPal billing agreement using an attacker-supplied agreement parameter without verifying that the authenticated user owns the agreement. A low-privilege authenticated user who learns or obtains another user's PayPal billing agreement ID can silently suspend the victim's recurring subscription, causing revenue loss to the platform and loss of paid service to the victim.

Details

AVideo's PayPalYPT plugin ships two near-duplicate endpoints that cancel a PayPal billing agreement. Only one of them enforces ownership:

  • plugin/PayPalYPT/PayPalAgreementCancel.json.php:19 - correctly requires either admin or the agreement's owner:
php
  if (!User::isAdmin() && !Subscription::isAgreementFromUser($_POST['agreement_id'], User::getId())) {
      $obj->msg = "Only the owner can delete his agreement";
      die(json_encode($obj));
  }
  • plugin/PayPalYPT/agreementCancel.json.php:9-26 - only checks User::isLogged() (in fact twice, redundantly) and then calls the cancellation directly:
php
  if (!User::isLogged()) { ... die; }              // line 9
  if (empty($_REQUEST['agreement'])) { ... die; }   // line 14
  if (!User::isLogged()) { ... die; }              // line 19 - duplicate; no ownership check
  $plugin = AVideoPlugin::loadPluginIfEnabled("PayPalYPT");
  $agreement = PayPalYPT::cancelAgreement($_REQUEST['agreement']);  // line 26

PayPalYPT::cancelAgreement() at plugin/PayPalYPT/PayPalYPT.php:548-566 resolves the agreement ID against PayPal and calls $createdAgreement->suspend($agreementStateDescriptor, $apiContext) unconditionally - the server does not verify that the logged-in user's users_id matches the owner recorded in PayPalYPT_log (or wherever the agreement was registered):

php
public static function cancelAgreement($agreement_id)
{
    ...
    $createdAgreement = self::getBillingAgreement($agreement_id);
    try {
        $createdAgreement->suspend($agreementStateDescriptor, $apiContext);
        return Agreement::get($createdAgreement->getId(), $apiContext);
    } catch (Exception $ex) {
        return false;
    }
}

The intended UI caller is subscriptions_list.php:84 which posts the current user's own agreement IDs - but the server accepts any agreement parameter from any logged-in user. Agreement IDs can leak via _error_log entries written in agreementCancel.json.php:34 and webhook.php during normal operation, via PayPal receipt emails, or via other administrative and payment-log screens. No CSRF token is required, but the root defect is missing authorization, not CSRF.

PoC

  1. Log in as any low-privilege user (registered subscriber, commenter, free-tier account created via signUp).
  2. Obtain the target's PayPal agreement ID (e.g., I-ABCD1234XYZ). This may come from server error logs, email receipts, admin/payment screens, or other disclosures.
  3. Send the request with the victim's agreement ID:
bash
   curl -X POST 'https://target.example/plugin/PayPalYPT/agreementCancel.json.php' \
     -b 'PHPSESSID=<attacker_session>' \
     -d 'agreement=I-ABCD1234XYZ'
  1. Expected response:
json
   {"error":false,"msg":""}

The victim's billing agreement is suspended at PayPal via Agreement::suspend() (PayPalYPT.php:560). The victim stops being billed; AVideo subsequently reflects the subscription as inactive.

Impact

  • Any authenticated user can silently cancel another user's active PayPal recurring billing agreement.
  • Revenue disruption for the platform operator - any affected subscribers stop being billed.
  • Service disruption for the victim - their paid subscription lapses.
  • The defect is purely an authorization gap; the sister endpoint PayPalAgreementCancel.json.php demonstrates that the owner/admin check was intentional for this action but was not applied to this duplicate.

Recommended Fix

Port the ownership check from the sister endpoint into agreementCancel.json.php:

php
if (!User::isAdmin() && !Subscription::isAgreementFromUser($_REQUEST['agreement'], User::getId())) {
    $obj->msg = "Only the owner can cancel this agreement";
    die(json_encode($obj));
}

Alternative, preferred remediation: delete the duplicate agreementCancel.json.php entirely and point the cancelAgreement() JS helper in subscriptions_list.php:84 at the already-protected PayPalAgreementCancel.json.php endpoint (sending the expected agreement_id POST field). While patching, also remove the redundant second User::isLogged() branch at line 19.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

21
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +21
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:composer/wwbn_avideo

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy