Koha-clms/xt
Tomas Cohen Arazi 693278d344
[22.11.x] Bug 40579: Add author test for CSV formula injection protection
This test ensures all Text::CSV usage in Koha includes proper formula
injection protection to prevent CSV formula injection attacks.

The test scans all Perl modules and verifies that Text::CSV constructors
include the 'formula' parameter set to a safe mode ('empty', 'die',
'croak', 'diag', or numeric 1-5).

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove xt/author/Text_CSV_Various.t
=> FAIL: Test should fail showing files without formula protection:
   - Koha/Patrons/Import.pm
3. Apply the follow-up patch to fix the violations
4. Repeat 2
=> SUCCESS: All tests should pass
5. Sign off :-D

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
2025-08-26 16:02:04 +12:00
..
author [22.11.x] Bug 40579: Add author test for CSV formula injection protection 2025-08-26 16:02:04 +12:00
api.t Bug 37018: Add 400 response definition to all routes 2024-07-23 15:35:16 +02:00
check_makefile.t Bug 34911: Test files from HEAD instead of 'master' 2023-10-17 16:56:23 +00:00
find-cud.t Bug 36176: Exclude misc/releases_notes/* 2024-03-27 08:57:08 +00:00
find-license-problems.t
…
find-misplaced-executables.t
…
find-missing-auth_checks.t Bug 24879: Exclude koha_perl_deps.pl 2024-03-25 08:24:03 +00:00
find-missing-filters.t Bug 33743: Make xt/find-missing-filters.t and xt/single_quotes.t check directories in git index only 2023-06-07 12:18:10 +00:00
single_quotes.t Bug 33743: Make xt/find-missing-filters.t and xt/single_quotes.t check directories in git index only 2023-06-07 12:18:10 +00:00
tt_valid.t
…
verify-debian-docbook.t
…
verify_bib1.att.t Bug 32741: Regression tests 2023-02-06 15:50:58 +00:00
vue_tidy.t Bug 32130: Add a test to ensure vue files will be kept tidy 2022-11-11 08:49:30 -03:00
yaml_valid.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
yaml_valid.t Bug 28617: (QA follow-up) Restore FindBin in two places 2021-12-07 12:16:28 -10:00