Soumettre #898809: fastadminnet fastadmin 1.2.0.20210401_beta Cross Site Scriptinginformation

Titrefastadminnet fastadmin 1.2.0.20210401_beta Cross Site Scripting
DescriptionA 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.
La source⚠️ https://lhzzz08.github.io/posts/cveapplication4/
Utilisateur
 zzl08 (UID 93909)
Soumission21/07/2026 17:52 (il y a 2 mois)
Modérer06/09/2026 11:35 (2 months later)
StatutAccepté
Entrée VulDB399399 [FastAdmin jusqu’à 1.2.0.20210401_beta User Controller User.php register/login url cross site scripting]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!