CVE-2022-27463: Open redirect in wwbn/avideo
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.4125%
CWE
Published
4/6/2022
Updated
1/27/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
wwbn/avideo | composer | <= 11.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the insecure validation
of the redirectUri
parameter in objects/login.json.php
. The original code checked if the redirectUri
started with the webSiteRootURL
using a regex (preg_match
). This check could be bypassed via subdomain tricks (e.g., http://legit.example.com.attacker.com
). The patch replaced this check with the isSameDomain()
function, which properly validates domain ownership. The regex-based validation
in the main
script logic (not a named function) was the root cause, making the entire script's redirect
handling vulnerable.