[11.x, user manager] SQL injection #1230

Closed
opened 2026-10-05 00:36:56 +02:00 by adam · 0 comments
Owner

As reported by Harry Goodman from NCC Group:

The ‘order[0][dir]’ parameter in admin/user_list_backend.php is vulnerable to SQL injection

I believe this is because of the following pieces of code:

68   if ( $_REQUEST['columns'][$col]["searchable"] == "true" )
69   {
70     $sOrder .= $aColumns[ $col ].' '.$_REQUEST["order"][0]["dir"].', ';
71   }

I would suggest either using the check_inputs function that your application seems to rely on, or depending on how much functionality is needed, just do a check to ensure the parameter is either ASC or DESC.

CVE-2021-32615

As reported by Harry Goodman from NCC Group: > The ‘order[0][dir]’ parameter in admin/user_list_backend.php is vulnerable to SQL injection > > I believe this is because of the following pieces of code: ``` 68 if ( $_REQUEST['columns'][$col]["searchable"] == "true" ) 69 { 70 $sOrder .= $aColumns[ $col ].' '.$_REQUEST["order"][0]["dir"].', '; 71 } ``` > I would suggest either using the check_inputs function that your application seems to rely on, or depending on how much functionality is needed, just do a check to ensure the parameter is either ASC or DESC. > > CVE-2021-32615 <!-- github-sync-id:890930565 -->
adam closed this issue 2026-10-05 00:36:57 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1230