]> git.koha-community.org Git - koha.git/commit
Bug 17903: Fix possible SQL injection in serial claims
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 Jan 2017 15:40:59 +0000 (16:40 +0100)
committerMason James <mtj@kohaaloha.com>
Mon, 30 Jan 2017 22:26:57 +0000 (11:26 +1300)
commitf68e2f242faaab5f01e1c215003f63b8a22168b6
treed53dd7b135f0c9452699c908ffb3546f66b063de
parent6185e0b62d015929035dcd42c45542014fd90d99
Bug 17903: Fix possible SQL injection in serial claims

To recreate:
/cgi-bin/koha/serials/claims.pl?serialid=1)and%20(select*from(select(sleep(20)))a)--%20&letter_code=0

Notice the delay.

The SQL query is not constructed correctly, placeholders must be used.

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: Mason James <mtj@kohaaloha.com>
C4/Letters.pm