Koha-clms/virtualshelves
Jonathan Druart 5b03c19c12 Bug 17901: Fix possible SQL injection in shelf editing
It has been reported that
/cgi-bin/koha/opac-shelves.pl?op=edit&referer=view&shelfnumber=146&owner=4&shelfname=testX&sortfield=titleaaaaaa\`&category=1

Could lead to SQL injection
Actually it explodes because the generated SQL query is not correctly formated.

However it would be good to limit the possible values for sortfield.

This vulnerability has been reported by MDSec.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 45cffd874c)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2017-01-30 16:28:57 +01:00
..
addbybiblionumber.pl Bug 16517: Do not crash when creating a list with an existing name 2016-05-25 10:57:25 +02:00
downloadshelf.pl Bug 14544: Get rid of C4::VirtualShelves and C4::VirtualShelves::Page 2015-11-05 09:58:02 -03:00
sendshelf.pl Bug 15137: Display ISBN and author info when sending list by email 2015-11-16 12:36:01 -03:00
shelves.pl Bug 17901: Fix possible SQL injection in shelf editing 2017-01-30 16:28:57 +01:00