Laravel DataTables applications that call orderByNullsLast() on a Query Builder or Eloquent DataTable may allow SQL injection. On affected releases, the package inserts the client-supplied sort column into the database's ORDER BY expression without quoting it as an identifier. A caller who can access the endpoint and choose the sort column can change how the database evaluates the query and may infer sensitive data readable by the application's database account. Access requirements depend on the application's route permissions.
Nulls-last ordering is opt-in. Applications that use the package's default ordering are unaffected by this issue.
Installed version of yajra/laravel-datatables-oracle | First release with the fix |
|---|---|
| 7.x, 8.x, or 9.x | No same-major patch. Upgrade to a patched release on a compatible major. |
| 10.0.0 through 10.11.5 | 10.11.6 |
| 11.0.0 through 11.1.7 | 11.1.8 |
| 12.0.0 through 12.7.0 | 12.7.1 |
| 13.0.0 | 13.1.0 |
| The patched releases quote the sort column using Laravel's database grammar. The 10.x and 11.x backports also validate request column names before building the query. |
Remove the orderByNullsLast() call from affected server-side DataTables endpoints until you can upgrade. Sorting will use the database driver's default placement of null values.
Fuente: NVD
Evaluación gratuita de vulnerabilidades
Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.
Obtén una demostración personalizada
"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."