| Título | fastadminnet fastadmin 1.2.0.20210401_beta Cross Site Scripting |
|---|
| Descrição | A reflected cross-site scripting (XSS) vulnerability exists in FastAdmin (fastadminnet/fastadmin) versions up to and including v1.2.0.20210401_beta, an open-source admin framework based on ThinkPHP. The vulnerability resides in the front-end user controller at application/index/controller/User.php. Both the register() function (line 68) and the login() function (line 146) accept a user-supplied "url" GET parameter filtered only by trim(), with no HTML sanitization. This value is assigned to the template and rendered directly via {$url} (no encoding modifier) into a double-quoted HTML attribute in the login and register page templates (application/index/view/user/login.html line 7 and register.html line 8). ThinkPHP applies no HTML encoding when a variable is output without a modifier, leaving the double-quote (") unescaped and allowing attribute context escape. An unauthenticated remote attacker can craft a malicious URL such as /index/user/register.html?url=%22%3E%3Cimg+src%3Dx+onerror%3Dalert%281%29%3E and trick a victim into visiting it, causing arbitrary JavaScript to execute in the victim's browser. This enables session cookie theft, credential phishing, and malicious redirects. No authentication is required to exploit this vulnerability. The vulnerability was fixed in v1.2.1.20210731_beta (commit b3d32e2) by adding the htmlentities modifier to the template output. |
|---|
| Fonte | ⚠️ https://lhzzz08.github.io/posts/cveapplication4/ |
|---|
| Utilizador | zzl08 (UID 93909) |
|---|
| Submissão | 21/07/2026 17h52 (há 2 meses) |
|---|
| Moderação | 06/09/2026 11h35 (2 months later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 399399 [FastAdmin até 1.2.0.20210401_beta User Controller User.php register/login url Script de Site Cruzado] |
|---|
| Pontos | 20 |
|---|