Project

General

Profile

Actions

Bug #2026

closed

Seguridad: inyección SQL en la búsqueda de trabajadores sociales (OFFSET sin parametrizar)

Added by Francisco Medina about 1 month ago. Updated 11 days ago.

Status:
Closed
Priority:
Urgent
Category:
-
Target version:
-
Start date:
10/26/2026
Due date:
% Done:

0%

Estimated time:

Description

Detectado por el Review Bot durante la revisión del PR #448 (RM #2013), 26-oct-2026.

Problema: service/backend/generalServices/search/getSocialWorkerSearchResults.php:178-179 concatena searchResultOffset, que viene del cliente, directamente en el SQL (OFFSET ... ROWS) en lugar de pasarlo como parámetro, como hacen los otros cuatro endpoints de búsqueda (principal, pro se, COA, TS). Es una inyección SQL accesible para usuarios trabajadores sociales autenticados, sobre CFI_DATABASE. Además, la línea 26 devuelve $e->__toString() al cliente.

Corrección: convertir a entero no negativo y enlazar como parámetro (OFFSET ? ROWS); no devolver la traza al cliente.

Despliegue: tratar como hotfix de seguridad.

Actions #1

Updated by Repo Bot about 1 month ago

  • Status changed from Not Started to Pending Review

PR ready for review: FJM-Seedbury — Seguridad: inyección SQL en la búsqueda de trabajadores sociales (OFFSET sin parametrizar) → status: Pending Review

Actions #2

Updated by Repo Bot 24 days ago

  • Status changed from Pending Review to Test Internally

Merged into Development via PR #456 → status: Test Internally

Actions #3

Updated by Francisco Medina 11 days ago

  • Status changed from Test Internally to Closed

Merged into Development via SUMAC-Attorney PR #456. Closing.

Actions

Also available in: Atom PDF