Koha/tools
David Cook dcd698a4b4
Bug 34349: Validate/escape inputs for task scheduler
This change validates and escapes inputs for task scheduler.

Test plan:
0. Apply patch
1. koha-plack --reload kohadev
2. Go to http://localhost:8081/cgi-bin/koha/tools/scheduler.pl
3. Input a time a minute in the future and leave the date blank
4. Choose an existing report and output format
5. Type a malicious string which is also a valid email address
into the Email field
6. Click "Save"
7. Note that the job is added but the Email is wrapped in single
quotes
8. Try using a non-malicious email address with a single quote.
9. Note that the single quote is escaped, so that it will still
be used by runreport.pl

JD amended patch: tidy

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Removed pars for $email =~ regex, removed old commented lines.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-25 18:18:38 -03:00
..
csv-profiles
access_files.pl Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
additional-contents.pl Bug 34368: Add CSRF token to Content Management pages 2023-08-07 21:00:00 -03:00
ajax-inventory.pl
automatic_item_modification_by_age.pl
batch_delete_records.pl
batch_extend_due_dates.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
batch_record_modification.pl
batch_records_ajax.pl
batchMod.pl Bug 34257: (QA follow-up): tidy up code 2023-09-12 09:45:05 -03:00
cleanborrowers.pl Bug 34441: Fixed Typo "Paramater" 2023-09-01 11:23:21 -03:00
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl Bug 33667: Allow copying holidays to all libraries when editing 2023-07-06 10:08:45 -03:00
export.pl Bug 25503: Add option to export items bundle contents in checkouts table 2023-05-10 15:26:20 -03:00
holidays.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
import_borrowers.pl Bug 27920: (QA follow-up) Change radios to a single select pulldown 2022-11-09 14:37:24 -03:00
inventory.pl Bug 22135: Display 'shelved out of order' error in inventory CSV export 2023-09-05 14:35:38 -03:00
letter.pl Bug 32221: Borrowers.password should no longer be an option 2023-01-20 13:55:17 +00:00
manage-marc-import.pl Bug 33412: Fix comparison when checking for overlay framework 2023-05-09 10:58:04 -03:00
marc_modification_templates.pl
modborrowers.pl Bug 34818: (bug 21083 follow-up) Fix batch patron modification tool 2023-09-19 16:34:15 -03:00
newHolidays.pl
overduerules.pl
page.pl Bug 31385: (follow-up) Same change at intranet side 2022-08-19 11:43:56 -03:00
picture-upload.pl Bug 33341: Address some perlcritic errors in 5.36 2023-03-28 14:50:33 +02:00
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl Bug 34349: Validate/escape inputs for task scheduler 2023-09-25 18:18:38 -03:00
showdiffmarc.pl Bug 31526: Follow-up for bug 29697 2022-09-16 10:25:48 -03:00
stage-marc-import.pl Bug 33755: Set profile_id and add missing import 2023-08-15 12:16:59 +03:00
stockrotation.pl Bug 30869: Add the ability to delete stock rotation rotas 2023-02-24 17:52:23 -03:00
tools-home.pl Bug 33595: (bug 26628 follow-up) Fix authorization for tools-home.pl 2023-05-16 11:47:15 +02:00
upload-cover-image.pl
upload-file.pl
upload.pl
viewlog.pl Bug 32037: Check for existence of object before building link 2022-11-04 19:18:54 -03:00