Koha-clms/serials
Kyle M Hall 3d03eff4a4 Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files
The system is vulnerable to Formula Injection attacks as the data
stored within the database and exported as CSV/Excel is not being
sanitized or validated against implanted formula payloads

This patch modifies all uses of Text::CSV and derived classes to pass
the "formula" parameter with value of "empty" which replaces formulas
by empty string.

Test Plan:
1) Apply this patch
2) For guided_reports.pl, attempt to export CSV where you've set a column to a formula somehow
   ( such as "=1+3" )
3) Export that CSV file
4) Note the formula has not been exported
5) Repeat this plan for the remaining scripts that export CSV files
   where users can define the outputted data

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Fixed two conflicts. I have tested that this works as advertised on:
- Reports (Download > Comma separated text (.csv)) [Text::CSV::Encoded]
- Circulation > Overdues > Download file of all overdues [Text::CSV_XS]
- misc/export_borrowers.pl [Text::CSV]
This covers all modules used, and both GUI and command line.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Change none to empty in the commit message ! None is the default,
doing nothing. Empty clears the formulas.
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-11-07 23:02:54 +00:00
..
acqui-search-result.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
acqui-search.pl
…
checkexpiration.pl Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
claims.pl Bug 30377: Fix two CGI::param called in list context-warnings 2022-04-04 16:23:46 +02:00
create-numberpattern.pl
…
lateissues-export.pl Bug 33339: Prevent Formula Injection (CSV Injection) in CSV files 2024-11-07 23:02:54 +00:00
reorder_members.pl
…
routing-preview.pl Bug 31335: Remove unnecessary holds fetch from routing-preview 2024-04-26 18:06:20 +02:00
routing.pl Bug 35329: Handle duplicate without 500 2024-03-01 11:01:26 +01:00
serials-collection.pl Bug 32392: Fix QA issues 2024-04-29 15:19:31 +02:00
serials-edit.pl Bug 32392: Enable skipping forward issues when receiving serials. 2024-04-29 15:19:30 +02:00
serials-home.pl
…
serials-search.pl Bug 26567: Allow to limit subscription search to subscriptions with routing lists 2024-05-10 16:45:44 +02:00
showpredictionpattern.pl Bug 35646: Allow use of publication date fields in serial numbering pattern 2024-04-29 09:35:44 +02:00
subscription-add.pl Bug 34478: Manual fix - serials/subscription-add.pl 2024-03-01 11:00:02 +01:00
subscription-batchedit.pl Bug 37183: Batch edit serial subscriptions sets expiration date to today 2024-07-24 20:12:55 +00:00
subscription-bib-search.pl Bug 34478: Corrections to some serials scripts 2024-03-01 11:00:10 +01:00
subscription-detail.pl Bug 37247: Fix display of "closed" 2024-07-25 14:24:53 +00:00
subscription-frequencies.pl Bug 37165: Can't edit frequencies due to stray cud- in modify op 2024-07-18 19:55:40 +00:00
subscription-frequency.pl
…
subscription-history.pl Bug 34478: op =~ ^cud- in pl/pm 2024-03-01 10:56:11 +01:00
subscription-numberpattern.pl
…
subscription-numberpatterns.pl Bug 34478: Update numbering patterns modification and deletion 2024-03-01 10:59:41 +01:00
subscription-renew.pl Bug 34478: Adjust 'op' on serials/subscription-renew 2024-03-01 11:00:16 +01:00
viewalerts.pl
…