mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
feat(waf): 新增安全防护节点 security_check
基础特征检测九项可开关;默认开启路径穿越与文件包含;命中任意规则走 false。
This commit is contained in:
@@ -790,6 +790,18 @@ export interface UACheckConfig {
|
||||
custom_ua_patterns: string[];
|
||||
}
|
||||
|
||||
export interface SecurityCheckConfig {
|
||||
sql_injection: boolean;
|
||||
path_traversal: boolean;
|
||||
command_injection: boolean;
|
||||
xss: boolean;
|
||||
ssrf: boolean;
|
||||
file_inclusion: boolean;
|
||||
malicious_upload: boolean;
|
||||
xxe: boolean;
|
||||
crlf_injection: boolean;
|
||||
}
|
||||
|
||||
export type WAFRuleNode =
|
||||
| {
|
||||
id: string;
|
||||
@@ -819,6 +831,13 @@ export type WAFRuleNode =
|
||||
position: XYPosition;
|
||||
config: UACheckConfig;
|
||||
}
|
||||
| {
|
||||
id: string;
|
||||
type: 'security_check';
|
||||
label?: string;
|
||||
position: XYPosition;
|
||||
config: SecurityCheckConfig;
|
||||
}
|
||||
| {
|
||||
id: string;
|
||||
type: 'pow';
|
||||
|
||||
Reference in New Issue
Block a user