Rishi2Monk has asked for the wisdom of the Perl Monks concerning the following question:
Kindly help me to fix the Checkmarx issue in the below code. I tried to do the below sanitization before print, but it does not work out
my ($db_dt,$enq_dt, $ecn, $kob, $userid, @fids) = @ARGV; if ($db_dt =~ /^[^0-9]$/ || $enq_dt =~ /^[^0-9]$/ || $userid =~ /^[^a- +zA-Z0-9]$/ || $ecn =~ /^[^0-9]$/ $kob =~ /^[^A-Z0-9]$/) { print("Invalid db_dt or enq_dt or userid or ecn or kob: ",__LI +NE__, "\n"); } print("Start of db2Json == " . get_time() . " in ${db_dt} image as of +${enq_dt}\n"); <== Error
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reflected XSS All Clients
by Corion (Patriarch) on Dec 27, 2022 at 09:40 UTC | |
|
Re: Reflected XSS All Clients
by haukex (Archbishop) on Dec 27, 2022 at 09:41 UTC | |
by Rishi2Monk (Novice) on Dec 27, 2022 at 10:23 UTC | |
by Corion (Patriarch) on Dec 27, 2022 at 10:27 UTC | |
|