The analysis of the provided security advisory and the associated commit clearly indicates a stored Cross-Site Scripting (XSS) vulnerability in the MessageSQLite.php file of the AVideo platform. The root cause of the vulnerability was an incomplete sanitization mechanism within the onMessage function.
The patch, found in commit 3e0b3ce2bfa766183ff0ae227439394db57b1a23, replaces a shallow unset operation on a specific key ($json['msg']['autoEvalCodeOnHTML']) with a call to a new recursive function, removeAutoEvalCodeOnHTMLRecursive. This change demonstrates that the original implementation was flawed and could be bypassed.
The vulnerable function is identified as MessageSQLite.onMessage because it is the entry point for processing WebSocket messages and is where the inadequate sanitization occurred. An attacker could send a specially crafted WebSocket message with a nested JSON payload containing the autoEvalCodeOnHTML directive, which would not be stripped by the vulnerable version of the code. This would lead to the execution of arbitrary JavaScript in the context of another user's browser session.