Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.mass-assignment.laravel-force-fill

Request input is mass-assigned with forceFill()/forceCreate(), which bypasses $fillable and $guarded. Attackers can set any column, such as is_admin or user_id.

Last updated:

Suite: Security

php

Request input is mass-assigned with forceFill()/forceCreate(), which bypasses $fillable and $guarded. Attackers can set any column, such as is_admin or user_id.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use fill()/create() with validated input, or forceFill() only with explicitly listed keys.

References

Source: packages/engine/rules/sast/php.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.