From d9729b4b01a32557e284ce469a410b24fcb65e62 Mon Sep 17 00:00:00 2001 From: Craig Knudsen Date: Thu, 14 Oct 2021 12:22:05 -0400 Subject: [PATCH] Security fixes: XSS and CSRF --- access.php | 15 ++++++--- admin.php | 7 ++-- approve_entry.php | 5 +-- assistant_edit.php | 2 +- availability.php | 2 +- category.php | 2 +- catsel.php | 2 +- docadd.php | 2 ++ edit_entry.php | 5 +-- edit_entry_handler.php | 1 + edit_remotes.php | 2 ++ edit_report.php | 1 + edit_template.php | 3 +- export.php | 1 + groups.php | 11 ++++--- import.php | 3 +- includes/formvars.php | 72 ++++++++++++++++++++++++++++++++++++++---- layers.php | 11 ++++--- list_unapproved.php | 1 + pref.php | 5 +-- purge.php | 1 + reject_entry.php | 10 +++--- remotecal_mgmt.php | 19 +++++++---- resourcecal_mgmt.php | 9 ++++-- search_handler.php | 1 + set_entry_cat.php | 2 ++ user_mgmt.php | 52 +++++++++++++++++++++++++++--- users_ajax.php | 35 ++++++++++++++++++-- view_d.php | 2 ++ view_entry.php | 17 ++++++---- views_edit.php | 1 + 31 files changed, 241 insertions(+), 61 deletions(-) diff --git a/access.php b/access.php index fb57d65ef..2420bee44 100644 --- a/access.php +++ b/access.php @@ -175,8 +175,9 @@

' . translate( 'User Access Control' ) . ( empty( $user_fullname ) ? '' : ': ' . $user_fullname ) . '

' . display_admin_link( false ) . ' -
- ' // Add a DEFAULT CONFIGURATION to be used as a mask. . '