MediumGHSA-44pg-c29v-hp6r
Laravel Guard bypass in Eloquent models
Affected versions
up to and including 5.5.49, 6.0.0 to before 6.18.34, 7.0.0 to before 7.23.2 - fixed in 6.18.34Details
In laravel releases before 6.18.34 and 7.23.2. It was possible to mass assign Eloquent attributes that included the model's table name: ``` $model->fill(['users.name' => 'Taylor']); ``` When doing so, Eloquent would remove the table name from the attribute for you. This was a "convenience" feature of Eloquent and was not documented. However, when paired with validation, this can lead to unexpected and unvalidated values being saved to the database. For this reason, we have removed the automatic stripping of table names from mass-asignment operations so that the attributes go through the typic
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected