Permalink
Browse files

merge SQLi regex

  • Loading branch information...
1 parent d47388f commit 5c7fbe3cdae292f40aac5a859e91ebb23b5e27fa @contra contra committed Jun 11, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/patterns/security.coffee
@@ -6,9 +6,4 @@ module.exports =
lfi: /\.\.\//i
- sql:
- meta: /((\%3D)|(=))[^\n]*((\%27)|(\')|(\-\-)|(\%3B)|(;))/i
- simple: /\w*((\%27)|(\'))((\%6F)|o|(\%4F))((\%72)|r|(\%52))/i
- union: /((\%27)|(\'))union/i
- mssql: /exec(\s|\+)+(s|x)p\w+/i
- unionselect: /UNION(?:\s+ALL)?\s+SELECT/i
+ sql: /(((\%3D)|(=))[^\n]*((\%27)|(\')|(\-\-)|(\%3B)|(;)))|(\w*((\%27)|(\'))((\%6F)|o|(\%4F))((\%72)|r|(\%52)))|(((\%27)|(\'))union)|(exec(\s|\+)+(s|x)p\w+)|(UNION(?:\s+ALL)?\s+SELECT)/i

0 comments on commit 5c7fbe3

Please sign in to comment.