-
-
Notifications
You must be signed in to change notification settings - Fork 311
Description
Description
Coraza v3.3.3
When processing valid XML (e.g., WordPress XML-RPC requests), Coraza logs a "Failed to process request body" error, suggesting a parsing failure. However, the XML parses correctly and the interruption is due to CRS rule 200002. This creates the impression of internal parser errors rather than an expected rule block.
Relevant code
coraza/internal/corazawaf/transaction.go
Line 1069 in 38f4571
| tx.debugLogger.Error().Err(err).Msg("Failed to process request body") |
Steps to reproduce
- Enable CRS on Coraza v3.3.3.
- Send a valid XML-RPC request to
/xmlrpc.php. - Observe an XML error in the log.
Here is an example (formatted for readability):
<?xml version="1.0"?>
<methodCall>
<methodName>wp.getUsersBlogs</methodName>
<params>
<param><value><string>admin</string></value></param>
<param><value><string>admin</string></value></param>
</params>
</methodCall>Expected result
The error should fire when there is an actual problem with the XML, an internal error, e.g., if we fed some binaly, compressed, or partial data to the parser.
Actual result
We receive an interruption along with a missleading error in the log, which possibly masks underlying problems and adds unnecessary noise.