You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C1: SQL injection through user_id and holiday_annual in do_holiday_aed #9
do_holiday_aed.php takes user_id (L51) and holiday_annual (L14) from POST without casting. HolidayFunctions::storeRecords() puts them straight into its WHERE clause:
$where.= " AND holiday_user=".$user;
$where.= " AND holiday_annual=".$annual;
Files:do_holiday_aed.php L14, L51; holiday_functions.class.php L412–414 ($userid is also interpolated at L93, L186, L310)
Fix: cast to int at the handler and in storeRecords() / the $userid queries.
Evidence: found by reading the code against master; not reproduced on a running install. Effort: XS
Activity