CVE-2026-54175: XSS
Summary
The MyAccountController::postAccountInfoForm action bound to POST /admin/edit-account-info calls $this->guard()->user()->update($request->except(['token'])). Because the controller uses except(['token']) rather than $request->validated() or the restricted keys defined in AccountInfoRequest::validationData(), any column present in the user model's $fillable array is mass-assigned from the request, including password. Backpack ships a separate POST /admin/change-password route (postChangePasswordForm) that requires oldpassword verification via ChangePasswordRequest::withValidator. The edit-account-info endpoint silently bypasses that security control.
For the default Laravel 11 App\Models\User model — which Backpack's installer and documentation use as the canonical admin user model — $fillable is ['name','email','password']. The password cast is hashed, so a plaintext password=… form field is automatically hashed and persisted. Any attacker holding an authenticated Backpack session (session theft, stolen cookies, XSS, public-terminal residual session) can permanently take over the account by issuing one POST that includes password=<attackervalue>, with no knowledge of the victim's current password. This converts time-limited, session-bound access into persistent account takeover.
Vulnerable code
src/app/Http/Controllers/MyAccountController.php:38
php public function postAccountInfoForm(AccountInfoRequest $request) { $result = $this->guard()->user()->update($request->except(['token'])); ... }
src/app/Http/Requests/AccountInfoRequest.php validationData() only narrows what gets validated (name, email column) — it does NOT narrow what is later saved.
Impact
1. Persistent account takeover after session theft. An adversary holding any authenticated Backpack session cookie (XSS, malware, stolen device, shared workstation) can rewrite the victim's password and retain access indefinitely, even after the original session expires or the victim logs out. Without this bypass the equivalent action requires oldpassword, which the adversary does not have. 2. Email pivot for full takeover. The same handler permits unverified change of the authentication column (email by default). A hijacked session can change the email to one the attacker controls and then use Backpack's password-reset flow as a backup channel. 3. Mass-assignment of any other $fillable attribute. In real deployments where the admin user model carries fields such as roleid, isadmin, teamid, emailverifiedat, twofactorsecret, etc., the same request mass-assigns those fields. This expands the impact to privilege escalation and 2FA disablement on apps that follow standard Laravel patterns of adding such columns to $fillable.
Fix recommendation
Replace $request->except(['token']) with an explicit allowlist that mirrors AccountInfoRequest::validationData():
php public function postAccountInfoForm(AccountInfoRequest $request) { $data = $request->only([backpackauthenticationcolumn(), 'name']); $result = $this->guard()->user()->update($data); ... }
This preserves change-password as the sole path for password mutation (which already enforces oldpassword).
Coordinates
- Repository: https://github.com/Laravel-Backpack/CRUD - Vulnerable file & line: src/app/Http/Controllers/MyAccountController.php:38 (release 6.8.10; master e7201c5) - Route: POST /admin/edit-account-info (default admin prefix; setupmyaccountroutes=true) - Verified against: backpack/crud 6.8.10, laravel/framework 11.x, PHP 8.4.7
— therawdev (responsible disclosure)
Reported by AI Agent sechub.dev and Vishal Shukla (@shukla304)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/backpack/crudto a version that resolves this vulnerability.Fixed in 7.0.34 - Upgrade
Upgrade
composer/backpack/crudto a version that resolves this vulnerability.Fixed in 6.8.11 - Upgrade
Upgrade
LaraveL-Backpack/CRUD (MyAccountController.php)to a version that resolves this vulnerability.Fixed in 6.8.10Patch e7201c5 - Configuration
In src/app/Http/Controllers/MyAccountController.php:38, replace the mass-assignment input `$request->except(['_token'])` with an explicit allowlist that mirrors `AccountInfoRequest::validationData()` so only `name` and the configured authentication column (e.g., `email` by default) are passed to `$this->guard()->user()->update(...)`. This prevents saving any other `$fillable` fields such as `password` from the request.
Backpack CRUD - MyAccountController::postAccountInfoForm (POST /admin/edit-account-info) User update input filtering (replace $request->except(['_token']) ) = Use an explicit allowlist mirroring AccountInfoRequest::validationData()
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs an authenticated Backpack session for the targeted account. This can include a session obtained through session theft, stolen cookies, XSS, or a residual session on a public terminal.
Does exploitation require knowing the account's current password?
No. The affected edit-account-info endpoint bypasses the old_password verification enforced by the separate change-password route, allowing a supplied password field to be persisted.
Is the default Laravel user model affected?
Yes. The canonical Laravel 11 App\Models\User model used by Backpack's installer and documentation has password in its $fillable array, so a password submitted to this endpoint can be mass-assigned and automatically hashed.
How can I determine whether a custom user model is exposed?
Check whether the model used by Backpack includes password or other sensitive columns in its $fillable array. The affected endpoint mass-assigns all fillable request fields except _token rather than using the request's validated or restricted fields.