{"id":"CVE-2026-47696","aliases":["CVE-2026-47696","GHSA-9392-pj54-qqf8"],"related":[],"kind":"vulnerability","state":"published","title":"WWBN AVideo: Authenticated wallet credit bypass in AuthorizeNet processPayment endpoint","summary":"WWBN AVideo is an open source video platform. In 29.0 and earlier, plugin/AuthorizeNet/processPayment.json.php credits the logged-in user's wallet based only on the attacker-controlled amount POST parameter. The endpoint contains a TODO for real Authorize.Net charging, hardcodes $paymentSuccess = true, and then calls YPTWallet::addBalance() without validating\nany Authorize.Net transaction, webhook signature, hosted payment token, nonce, or server-side payment record. This allows any logged-in user to add arbitrary funds to their own AVideo wallet when the AuthorizeNet and YPTWallet plugins are enabled.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"WWBN AVideo is an open source video platform. In 29.0 and earlier, plugin/AuthorizeNet/processPayment.json.php credits the logged-in user's wallet based only on the attacker-controlled amount POST parameter. The endpoint contains a TODO for real Authorize.Net charging, hardcodes $paymentSuccess = true, and then calls YPTWallet::addBalance() without validating\nany Authorize.Net transaction, webhook signature, hosted payment token, nonce, or server-side payment record. This allows any logged-in user to add arbitrary funds to their own AVideo wallet when the AuthorizeNet and YPTWallet plugins are enabled.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n  `plugin/AuthorizeNet/processPayment.json.php` credits the logged-in user's wallet based only on the attacker-controlled `amount` POST parameter.\n\n  The endpoint contains a TODO for real Authorize.Net charging, hardcodes `$paymentSuccess = true`, and then calls `YPTWallet::addBalance()` without validating\n  any Authorize.Net transaction, webhook signature, hosted payment token, nonce, or server-side payment record.\n\n  This allows any logged-in user to add arbitrary funds to their own AVideo wallet when the `AuthorizeNet` and `YPTWallet` plugins are enabled.\n\n  ### Details\n\n  Affected file:\n\n  `plugin/AuthorizeNet/processPayment.json.php`\n\n  Relevant code:\n\n  ```php\n  $amount = isset($_POST['amount']) ? floatval($_POST['amount']) : 0;\n  $userData = isset($_POST['userData']) ? $_POST['userData'] : [];\n\n  if ($amount <= 0) {\n      echo json_encode(['error' => 'Invalid amount']);\n      exit;\n  }\n\n  // TODO: Implement payment logic using Authorize.Net API\n  // Example: Call Authorize.Net API here\n  // $result = $plugin->chargePayment($amount, $userData);\n\n  // Simulate payment success for now\n  $paymentSuccess = true;\n  $users_id = @User::getId();\n\n  if ($paymentSuccess && !empty($users_id)) {\n      $walletPlugin = AVideoPlugin::loadPluginIfEnabled(\"YPTWallet\");\n      if ($walletPlugin) {\n          $walletPlugin->addBalance($users_id, $amount, 'Authorize.Net one-time payment');\n          echo json_encode(['success' => true, 'result' => 'Payment processed and wallet updated']);\n          exit;\n      }\n  }\n```\n  Vulnerable flow:\n\n  1. `$_POST['amount']` is read from the client.\n  2. The endpoint only checks that the amount is greater than zero.\n  3. The real Authorize.Net charge is not performed.\n  4. `$paymentSuccess` is hardcoded to true.\n  5. The logged-in user's wallet is credited with the client-supplied amount.\n\n  There is no verification of:\n\n  - Authorize.Net transaction ID\n  - payment token\n  - webhook signature\n  - pending payment record\n  - expected server-side amount\n  - currency\n  - duplicate transaction/replay state\n\n  ### PoC\n\n  Prerequisites:\n\n  - AVideo with AuthorizeNet plugin enabled\n  - YPTWallet plugin enabled\n  - Attacker has any valid user account\n\n  Steps:\n\n  1. Log in as a low-privileged user.\n  2. Open the wallet page and record the current balance.\n  3. Send the following request with the user's authenticated session cookie:\n```\n  curl -i -s -b 'PHPSESSID=<user_session>' \\\n    -X POST 'https://target.example/plugin/AuthorizeNet/processPayment.json.php' \\\n    --data 'amount=9999&userData[note]=poc'\n```\n  4. The endpoint returns:\n```\n  {\"success\":true,\"result\":\"Payment processed and wallet updated\"}\n```\n  5. Refresh the wallet page.\n  6. The wallet balance is increased by 9999.\n\n  No Authorize.Net hosted payment page, card payment, transaction confirmation, webhook, or server-side payment validation is required.\n\n### Impact\n\n  A normal authenticated user can mint arbitrary wallet balance.\n\n  Depending on the target site's configuration, this may allow the attacker to:\n\n  - purchase paid videos or subscriptions without payment\n  - abuse any feature backed by YPTWallet\n  - transfer fake funds to other users\n  - manipulate accounting or payout-related workflows\n  - bypass monetization controls\n\n### Recommended fix\n\n- Remove or disable `processPayment.json.php` if it is obsolete.\n- Never credit wallet balance from client-supplied `amount` alone.\n- Use the existing Authorize.Net hosted token / webhook / transaction reconciliation flow.\n- Require a verified Authorize.Net transaction ID and server-side amount lookup before calling `addBalance()`.\n- Add regression tests proving arbitrary POSTs cannot credit a wallet.","format":"markdown","source":"ghsa"},{"lang":"es","text":"WWBN AVideo es una plataforma de video de código abierto. En 29.0 y anteriores, plugin/AuthorizeNet/processPayment.json.php acredita la billetera del usuario autenticado basándose únicamente en el parámetro POST 'amount' controlado por el atacante. El endpoint contiene un TODO para una carga real de Authorize.Net, codifica de forma rígida $paymentSuccess = true, y luego llama a YPTWallet::addBalance() sin validar ninguna transacción de Authorize.Net, firma de webhook, token de pago alojado, nonce o registro de pago del servidor. Esto permite a cualquier usuario autenticado añadir fondos arbitrarios a su propia billetera de AVideo cuando los plugins AuthorizeNet y YPTWallet están habilitados.","source":"nvd"}],"published":"2026-05-29T12:59:30.432Z","modified":"2026-09-10T03:50:49.076Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"<= 29.0","status":"affected"}],"vendor":"WWBN","product":"AVideo","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"29.0"}],"ecosystem":"Packagist","package":"WWBN/AVideo","purl":"pkg:composer/WWBN/AVideo","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"29.0"}],"vendor":"wwbn","product":"avideo","cpe":"cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-9392-pj54-qqf8","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47696","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/WWBN/AVideo/commit/822402444b4db4e9442779c8c789ffe5312b3627","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/WWBN/AVideo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-29T14:03:48.476Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47696","url":"https://www.cve.org/CVERecord?id=CVE-2026-47696","licence":"CVE Terms of Use","modified":"2026-05-29T14:03:52.153Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9392-pj54-qqf8","url":"https://github.com/advisories/GHSA-9392-pj54-qqf8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:49.076Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47696","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47696","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.321Z","epss":{"score":0.0012,"percentile":0.02017,"date":"2026-12-01T12:00:22.000Z"}}