Laravel Rest Api has a Search Validation Bypass
Moderate severity
GitHub Reviewed
Published
May 25, 2025
in
Lomkit/laravel-rest-api
•
Updated May 28, 2025
Description
Published to the GitHub Advisory Database
May 27, 2025
Reviewed
May 27, 2025
Last updated
May 28, 2025
A validation bypass vulnerability was discovered prior to version 2.13.0, where multiple validations defined for the same attribute could be silently overridden. Due to how the framework merged validation rules across multiple contexts (such as index, store, and update actions), malicious actors could exploit this behavior by crafting requests that bypass expected validation rules, potentially injecting unexpected or dangerous parameters into the application.
Impact:
This could lead to unauthorized data being accepted or processed by the API, depending on the context in which the validation was bypassed.
Patch:
The issue was fixed in PR #172 by ensuring that multiple rule definitions are merged correctly rather than overwritten.
References