Aias00 opened a new issue, #6770:
URL: https://github.com/apache/shenyu/issues/6770

   - severity: Medium
   - files: 
`shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-desensitize-api/.../matcher/KeyWordMatch.java:36-46`
   - description: The constructor iterates over the keyword set and appends 
each keyword directly into a regex `StringBuilder` without escaping: 
`sb.append(tempKeyWord)`. If any keyword contains regex metacharacters (`(`, 
`[`, `.`, `*`, `\`, `+`, `?`, `{`, `|`), `Pattern.compile` throws 
`PatternSyntaxException`. This propagates from 
`AbstractLoggingPlugin.doExecute()` line 119.
   - impact: A single misconfigured keyword containing regex metacharacters 
breaks all request handling for every request matching that rule.
   - suggested_fix: Use `Pattern.quote(tempKeyWord)` to escape each keyword 
before appending.
   - confidence: High
   - related_existing: none
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in 
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to