ai-exploits/fastapi
Muhammad Daffa ba0171f6c4 feat: change some templates structure to make it readable and fix fastapi-dos template 2024-07-23 14:17:53 +07:00
..
README.md April exploit release 2024-05-07 08:59:01 -07:00
fastapi_dos.yaml feat: change some templates structure to make it readable and fix fastapi-dos template 2024-07-23 14:17:53 +07:00
flask_dos.py April exploit release 2024-05-07 08:59:01 -07:00

README.md

Flask/FastAPI Vulnerabilities and Exploits

Flask and FastAPI are vulnerable to a Regex Denial of Service (ReDoS). The request needs to be submitted to a POST API endpoint that attempts the read the request body.

FastAPI is only vulnerable when processing Form data and not JSON.

Vulnerabilities

ReDOS

  • Description: FastAPI < 0.109.0 is vulnerable to a ReDoS when preocessing form data. Flask is still vulnerable.
  • Impact: An attacker could send a custom-made Content-Type option that is very difficult for the RegEx to process, consuming CPU resources.

Reports

Disclaimer

The vulnerabilities and associated exploits provided in this repository are for educational and ethical security testing purposes only.

Contribution

Contributions to improve the exploits or documentation are welcome. Please follow the contributing guidelines outlined in the repository.

License

All exploits and templates in this repository are released under the Apache 2.0 License.