From 5495de04659ed0255468e76db5571c12f1d16f4e Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Sun, 29 Aug 2021 18:59:27 +0530 Subject: [PATCH] Fixed XSS Reported on Huntr by @nerrorsec --- web/startScan/templates/startScan/schedule_scan_list.html | 2 +- web/static/custom/custom.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/startScan/templates/startScan/schedule_scan_list.html b/web/startScan/templates/startScan/schedule_scan_list.html index 681a32b21..263923c6d 100644 --- a/web/startScan/templates/startScan/schedule_scan_list.html +++ b/web/startScan/templates/startScan/schedule_scan_list.html @@ -81,7 +81,7 @@

Scheduled Scans

- + diff --git a/web/static/custom/custom.js b/web/static/custom/custom.js index 49828e9ff..2fc41a3db 100644 --- a/web/static/custom/custom.js +++ b/web/static/custom/custom.js @@ -36,12 +36,12 @@ function jsEscape(str){ } -function deleteScheduledScan(id, task_name) +function deleteScheduledScan(id) { const delAPI = "../delete/scheduled_task/"+id; swal.queue([{ - title: 'Are you sure you want to delete ' + task_name + '?', - text: "You won't be able to revert this!", + title: 'Are you sure you want to delete this?', + text: "This action is irreversible.", type: 'warning', showCancelButton: true, confirmButtonText: 'Delete',