Descrizione
The OWASP core rule set (CRS) is a set of generic attack detection rules for use with compatible web application firewalls. Prior to versions 3.3.10, 4.25.1, and 4.28.0, regular-expression denial of service (ReDoS) affects a shared regex-assembly include used to build 12 Unix RCE detection rules in CRS v4, and the same ambiguous pattern was present in the manually-assembled regexes in 4 rules in CRS v3.3. With a single, unauthenticated, crafted request, the generated pattern drives PCRE2 past its backtracking limit. When PCRE2 exceeds that limit, the @rx operator returns an error rather than a match result, which results in detection bypass and CPU denial of service. This issue has been patched in versions 3.3.10, 4.25.1, and 4.28.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8, EPSS 0.6% (percentile 49).
Versioni da aggiornare
- coreruleset coreruleset: vulnerabile la versione
< 3.3.10→ installare l'ultima release supportata dal vendor. - coreruleset coreruleset: vulnerabile la versione
< 4.25.1→ installare l'ultima release supportata dal vendor. - coreruleset coreruleset: vulnerabile la versione
< 4.28.0→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| coreruleset | coreruleset | < 3.3.10 | — |
| coreruleset | coreruleset | < 4.25.1 | — |
| coreruleset | coreruleset | < 4.28.0 | — |
Riferimenti
- Riferimentohttps://github.com/coreruleset/coreruleset/commit/4665b6d7a79a81aa8a802ef3c901d69491c009a4
- Riferimentohttps://github.com/coreruleset/coreruleset/commit/6083611d00291e85ab7b587e96577deb53ed9cac
- Riferimentohttps://github.com/coreruleset/coreruleset/commit/e3b612a909532dcc8d056c01ac04b31117b71505
- Riferimentohttps://github.com/coreruleset/coreruleset/security/advisories/GHSA-f5qm-3h4p-8qhg