Koha-clms/patroncards
Martin Renvoize cbc7086677
Bug 42747: (QA follow-up) Parameterize query, dedupe, and log rejections
The original fix only whitelisted image_name at the point it's saved
in edit-layout.pl, leaving the actual injection sink in create-pdf.pl
unparameterized. This adds defense-in-depth by fixing the query itself,
avoids a redundant duplicate call to get_all_image_names() (already
fetched earlier in the script as $image_names), and logs rejected
image_name values instead of silently discarding them so tampering
attempts leave an audit trail.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit 5b825da072)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
2026-07-30 10:27:39 +00:00
..
create-pdf.pl Bug 42747: (QA follow-up) Parameterize query, dedupe, and log rejections 2026-07-30 10:27:39 +00:00
edit-batch.pl Bug 36877: (follow-up) Fix op eq edit to op eq edit_form in edit-batch.pl 2024-05-17 12:03:52 +02:00
edit-layout.pl Bug 42747: (QA follow-up) Parameterize query, dedupe, and log rejections 2026-07-30 10:27:39 +00:00
edit-profile.pl Bug 36877: (follow-up) Fix op eq edit to op eq edit_form in edit-batch.pl 2024-05-17 12:03:52 +02:00
edit-template.pl Bug 36877: (follow-up) Fix op eq edit to op eq edit_form in edit-batch.pl 2024-05-17 12:03:52 +02:00
home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
image-manage.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
manage.pl Bug 39800: Error 500 when trying to delete patron card template 2025-10-03 15:36:48 +02:00
print.pl Bug 37614: Printing patron cards from patron lists should be a GET 2024-08-16 17:33:45 +02:00