Skip to content

Commit

Permalink
Block "/**/ORDER/**/BY/**/" in the argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 1, 2024
1 parent a1d4c9e commit 5d466ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Revision history for CGI-Info
Added t/version.t
Added t/tabs.t
Mark ias_crawler and ZoominfoBot as robots
Block "/**/ORDER/**/BY/**/" in the argument

0.80 Fri Jan 19 08:05:29 EST 2024
Added documentroot() as a synonym to rootdir()
Expand Down
1 change: 1 addition & 0 deletions lib/CGI/Info.pm
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ sub params {
($value =~ /((\%27)|(\'))union/ix) ||
($value =~ /select[[a-z]\s\*]from/ix) ||
($value =~ /\sAND\s1=1/ix) ||
($value =~ /\/\*\*\/ORDER\/\*\*\/BY\/\*\*/ix) ||
($value =~ /exec(\s|\+)+(s|x)p\w+/ix)) {
if($self->{logger}) {
if($ENV{'REMOTE_ADDR'}) {
Expand Down

0 comments on commit 5d466ff

Please sign in to comment.