CTFd Regular Expression Denial-of-Service Vulnerability

Vulnerability

A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in CTFd version 3.7.3. The issue arises in the 'validate_email' function located in 'CTFd/utils/validators/__init__.py'. Attackers can exploit this vulnerability by sending a crafted email address during the registration process, causing excessive backtracking in the regular expression engine and leading to a denial-of-service condition.

Impact

Exploitation of this vulnerability causes a denial-of-service condition by introducing significant latency into the email validation process, potentially leading to application timeouts.

Reproduction

To reproduce this vulnerability, send a POST request to the '/register' endpoint with a crafted email address that exploits the regular expression used for validation. The payload should be designed to cause excessive backtracking, such as by including a large number of repeated characters. The 'nonce' value required for the request can be obtained from the registration page.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
2.5
exploitability
9.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.