# Response Filter Denial of Service (RFDoS): shut down a website by triggering WAF rule

WAF response-body rules (OWASP CRS, Comodo, Atomicorp) block pages when user input like ORA-1234 is reflected, letting anyone DoS stored-input pages.

- Payout: $1,200
- Severity: medium
- Program: -
- Found by: Andrea Menin
- Disclosed: 2024-05-14
- Write-up quality: 7/10
- Original: https://blog.sicuranext.com/response-filter-denial-of-service-a-new-way-to-shutdown-a-website/
- Library page: https://bugbountylibrary.com/r/blog%3Ablog-sicuranext-com-response-filter-denial-of-service-a-new-way-to-shutdown-a-website
- Tags: area:web domain:web impact:dos kind:bounty platform:blog sev:medium tech:nginx technique:recon technique:source-review vuln:dos vuln:misconfiguration

**Target:** ModSecurity v2 + OWASP CRS/Comodo/Atomicorp response-body rules on web apps
**Root cause:** Response-body WAF rules match plain strings without special characters (e.g. ORA-1234, Dynamic SQL Error, ---ASL-CONFIG-FILE---) to block SQL error/web shell leakage; any reflected user input matching these strings causes the WAF to block the whole page for all users.
**Steps:**
1. Identify target running ModSecurity v2 + OWASP CRS (Plesk/cPanel default) with response body inspection enabled.
2. Confirm reflection: `GET /?s=ORA-1` returns 200 OK.
3. Send `GET /?s=ORA-1234`; WAF blocks response with 403 Forbidden.
4. Persist the string in stored input (product review, comment, username/email like `andrea+ORA-1234@gmail.com`) so every viewer of that page gets blocked.
5. Repeat across all products/pages to scale the outage.
**How found:** Reading OWASP CRS RESPONSE-951-DATA-LEAKAGES-SQL.conf and noticing rules match plain alphanumeric strings (ORA- followed by digits) with no special characters, making them trivially reflectable; validated with a Nuclei template comparing `?s=ORA-1` (200) vs `?s=ORA-1234` (403) across 15M WordPress sites from Common Crawl.
**Exploitation:** Attacker submits innocuous-looking strings (ORA-1234, OracleDriver, Dynamic SQL Error, ---ASL-CONFIG-FILE---) into any stored/reflected input; WAF phase-4 rule matches RESPONSE_BODY and returns 403 to all visitors, denying access to product pages, user lists, account details.
**Escalation:** Mass-submitting the trigger string to all products/reviews on an e-commerce site shuts down the entire catalog; also bypassable via HTTP Range requests to read the blocked content.
**Insight:** Audit WAF response-body rules for matches on plain strings lacking special characters; any such rule is a stored-input DoS primitive. Test reflection endpoints with the rule's literal trigger and check for 403 vs 200 differential.

## Proof of concept (copied exactly from the original report)

**WordPress search query triggering RFDoS**

```
/?s=ORA-1 expecting a 200 OK
- /?s=ORA-1234 expecting a 403 Forbidden
```

**ModSecurity Visa CC blocking rule**

```
SecRule RESPONSE_BODY|RESPONSE_HEADERS:Location "@verifyCC (?:^|[^\d])(?<!google_ad_client = \"pub-)(4\d{3}\-?\d{4}\-?\d{2}\-?\d{2}\-?\d(?:\d{3})??)(?:[^\d]|$)" \
"chain,\
logdata:'Start of CC #: %{tx.ccdata_begin}***...',\
phase:4,\
t:none,\
ctl:auditLogParts=-E,\
block,
msg:'Visa Credit Card Number sent from site to user',\
id:'920008',\
tag:'WASCTC/5.2',\
tag:'PCI/3.3',\
severity:'1'"
```

**List of magic strings triggering response rules**

```
ET Database Engine
Access Database Engine
ORA-1234
Oracle error
OracleDriver
CLI DriverDB2
DB2 SQL error
Dynamic SQL Error
An illegal character has been found in the statement
ExceptionInformix
Ingres SQLSTATE
Unexpected end of command in statement
SQL errorPOS1
Warningmaxdb
Unclosed quotation mark after the character string
Microsoft OLE DB Provider for ODBC Drivers
Microsoft OLE DB Provider for SQL Server
Incorrect syntax near
Sintaxis incorrecta cerca de
Syntax error in string in query expression
Procedure or function foo expects parameter
Unclosed quotation mark before the character string
Syntax error foo in query expression
the used select statements have different number of columns
OLE DBSQL Server
DriverSQL Server
SQL ServerDriverS
QL Server12345678
supplied argument is not a valid MySQL
on MySQL result index
You have an error in your SQL syntax near
MySQL server version for the right syntax to use
SQL syntaxMySQL
valid MySQL result
PostgreSQLERROR
valid PostgreSQL result
Supplied argument is not a valid PostgreSQL foo resource
Unable to connect to PostgreSQL server
Warningsybase
SybaseServer message
An Error Has Occurred
```

