# base-admin Vulnerability Report Software: base-admin Developer or vendor: huanzi-qch Code repository: https://github.com/huanzi-qch/base-admin ## 1. Stored XSS in Username Leading to Account Takeover Brief description: A normal user stores XSS in their username, and the script runs when the victim opens the user management page, taking over the victim's account. Affected versions: 9aacd614 (2019-09-17) to 52816b76 (2026-03-17) Introduced in: [base-admin commit 9aacd614](https://github.com/huanzi-qch/base-admin/commit/9aacd614d721cc2a4d24c1a952e118b8e622d7a4) Preconditions: The attacker has a normal user account, and the victim opens the user management page. ### Root Cause When a normal user changes the username on the profile page, the server saves the `userName` from the request into the logged-in user's record. The profile page submits the username through this input: ```html