Property
Languagecsharp
Severitymedium
CWECWE-1333: Inefficient Regular Expression Complexity
OWASPA01:2017 - Injection
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelLow

Description#

The code creates regular expressions with no or excessively long timeouts, which means regex operations could run indefinitely if given complex or malicious input. This leaves the application vulnerable to resource exhaustion.

Impact#

An attacker could craft input that causes the regex engine to hang, potentially freezing the application or making it unresponsive. This can lead to denial of service, impacting system reliability and availability for legitimate users.