Laravel Risk of mass-assignment vulnerabilities
Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. How…
As published by the sources
Affected packages
- Affected
>=4.0.0,<4.1.29Fixed in4.1.29
Derived from the fixed versions above
What to do
Upgrade laravel/framework to 4.1.29 or later.
composer update laravel/framework --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an "update" or "save" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.
References
- Advisoryhttps://github.com/advisories/GHSA-rj3w-99gc-8j58
- Webhttps://github.com/laravel/framework/commit/c942a1bc30999e3d7a5567f264bfc99c77843919
- Webhttps://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2014-05-20.yaml
- Packagehttps://github.com/laravel/framework
- Webhttps://laravel.com/docs/5.3/upgrade#upgrade-4.1.29