FreeBSD Bugzilla – Attachment 224467 Details for
Bug 255182
www/hiawatha : regexp error on 13
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix regexp
hiawatha_fix_regex.patch (text/plain), 1.77 KB, created by
Fernando ApesteguĂa
on 2021-04-27 07:47:46 UTC
(
hide
)
Description:
Patch to fix regexp
Filename:
MIME Type:
Creator:
Fernando ApesteguĂa
Created:
2021-04-27 07:47:46 UTC
Size:
1.77 KB
patch
obsolete
>diff --git a/www/hiawatha/files/patch-src_session.c b/www/hiawatha/files/patch-src_session.c >new file mode 100644 >index 000000000000..f095434683f9 >--- /dev/null >+++ b/www/hiawatha/files/patch-src_session.c >@@ -0,0 +1,27 @@ >+--- src/session.c.orig 2021-04-27 07:15:50 UTC >++++ src/session.c >+@@ -33,15 +33,15 @@ >+ static const struct { >+ const char *text; >+ } sqli_detection[] = { >+- {"'\\s*(;\\s*)?--(\\s|')"}, >+- {"\\s+(and|or|xor|&&|\\|\\|)\\s*\\(?\\s*('|[0-9]|`?[a-z\\._-]+`?\\s*(=|like)|[a-z]+\\s*\\()"}, >+- {"\\s+(not\\s+)?in\\s*\\(\\s*['0-9]"}, >+- {"union(\\s+all)?(\\s*\\(\\s*|\\s+)select(`|\\s)"}, >+- {"select(\\s*`|\\s+)(\\*|[a-z0-9_\\, ]*)(`\\s*|\\s+)from(\\s*`|\\s+)[a-z0-9_\\.]*"}, >+- {"insert\\s+into(\\s*`|\\s+).*(`\\s*|\\s+)(values\\s*)?\\(.*\\)"}, >+- {"update(\\s*`|\\s+)[a-z0-9_\\.]*(`\\s*|\\s+)set(\\s*`|\\s+).*="}, >+- {"delete\\s+from(\\s*`|\\s+)[a-z0-9_\\.]*`?"}, >+- {"extractvalue\\s*\\(\\s*[0-9'\"@]"}, >++ {"'[[:space:]]*(;[[:space:]]*)?--([[:space:]]|')"}, >++ {"[[:space:]]+(and|or|xor|&&|\\|\\|)[[:space:]]*\\(?[[:space:]]*('|[0-9]|`?[a-z\\._-]+`?[[:space:]]*(=|like)|[a-z]+[[:space:]]*\\()"}, >++ {"[[:space:]]+(not[[:space:]]+)?in[[:space:]]*\\([[:space:]]*['0-9]"}, >++ {"union([[:space:]]+all)?([[:space:]]*\\([[:space:]]*|[[:space:]]+)select(`|[[:space:]])"}, >++ {"select([[:space:]]*`|[[:space:]]+)(\\*|[a-z0-9_\\, ]*)(`[[:space:]]*|[[:space:]]+)from([[:space:]]*`|[[:space:]]+)[a-z0-9_\\.]*"}, >++ {"insert[[:space:]]+into([[:space:]]*`|[[:space:]]+).*(`[[:space:]]*|[[:space:]]+)(values[[:space:]]*)?\\(.*\\)"}, >++ {"update([[:space:]]*`|[[:space:]]+)[a-z0-9_\\.]*(`[[:space:]]*|[[:space:]]+)set([[:space:]]*`|[[:space:]]+).*="}, >++ {"delete[[:space:]]+from([[:space:]]*`|[[:space:]]+)[a-z0-9_\\.]*`?"}, >++ {"extractvalue[[:space:]]*\\([[:space:]]*[0-9'\"@]"}, >+ {NULL} >+ }; >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 255182
: 224467