laravel
Warn
Audited by Socket on Sep 11, 2026
1 alert found:
SecuritySecurityevals/files/PostController.php
MEDIUMSecurityMEDIUM
evals/files/PostController.php
The code is not indicative of malware, but it contains a high-confidence SQL injection vulnerability in `search()` because both `q` and `dir` are interpolated into raw SQL. It also presents mass-assignment and potentially authorization risks through unrestricted request data in `store()` and `update()`. Use bound query parameters, allowlist the sort direction, validate only intended fields, use explicit model fillable attributes, and enforce authorization policies.
Confidence: 99%Severity: 84%
Audit Metadata