Skip to content

Commit

Permalink
Updated dotnet rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wireghoul committed Sep 21, 2021
1 parent f125d88 commit 99fa5de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion signatures/dotnet.db
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ new[[:space:]]+Cli[[:space:]]*\(.*
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\+[[:space:]]*[Rr]equest
(LIMIT|limit)[[:space:]]+.*\+[[:space:]]*[Rr]equest\..*
Process.Start[[:space:]]*\(.*\+
\.Arguments[[:space:]]*=(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+|.*[^\'\"]+[[:space:]]*\+[[:space:]]*[\'\"])
\.SelectNodes[[:space:]]*\(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
ReadAllBytes[[:space:]]*\(.*[Rr]equest
# DotNet input controls
system.web.ui.htmlcontrols.htmlinputhidden
system.web.ui.webcontrols.hiddenfield
Expand Down Expand Up @@ -169,7 +172,7 @@ StoredProcedure[[:space:]]*\(
(LIKE|like)[[:space:]]+[^\(\)\;]+(\{[0-9]+\}|[\'\"][[:space:]]+\+)
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*(\{[0-9]+\}|[\'\"][[:space:]]+\+)
(LIMIT|limit)[[:space:]]+.*(\{[0-9]+\}|[\'\"][[:space:]]+\+)
ServerCertificateValidationCallback
ServerCertificateValidationCallback.*[Tt][Rr][Uu][Ee]
checkCertificateName
checkCertificateRevocationList
# Dotnet XSS
Expand Down
3 changes: 3 additions & 0 deletions signatures/dotnet/fruit.db
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\+[[:space:]]*[Rr]equest
(LIMIT|limit)[[:space:]]+.*\+[[:space:]]*[Rr]equest\..*
Process.Start[[:space:]]*\(.*\+
\.Arguments[[:space:]]*=(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+|.*[^\'\"]+[[:space:]]*\+[[:space:]]*[\'\"])
\.SelectNodes[[:space:]]*\(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
ReadAllBytes[[:space:]]*\(.*[Rr]equest
2 changes: 1 addition & 1 deletion signatures/dotnet/ssl.db
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ServerCertificateValidationCallback
ServerCertificateValidationCallback.*[Tt][Rr][Uu][Ee]
checkCertificateName
checkCertificateRevocationList
3 changes: 3 additions & 0 deletions signatures/fruit.db
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ strnc(at|py)[[:space:]]*\([^,]+,[^,]+,[[:space:]]*strlen[[:space:]]*\([^\)]+\)[[
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\+[[:space:]]*[Rr]equest
(LIMIT|limit)[[:space:]]+.*\+[[:space:]]*[Rr]equest\..*
Process.Start[[:space:]]*\(.*\+
\.Arguments[[:space:]]*=(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+|.*[^\'\"]+[[:space:]]*\+[[:space:]]*[\'\"])
\.SelectNodes[[:space:]]*\(.*[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
ReadAllBytes[[:space:]]*\(.*[Rr]equest
\.WriteString\(.*URL\.Query\(\).*\)
\.Write\(.*URL.Query\(\).*\)
\.Println\(.*URL.Query\(\).*\)
Expand Down

0 comments on commit 99fa5de

Please sign in to comment.