cziegeler opened a new pull request, #41:
URL: https://github.com/apache/sling-org-apache-sling-servlets-post/pull/41

   Prevent log injection attacks by sanitizing user-controlled redirect target 
values before writing them to log output.
   
   - Add `sanitizeForLog()` helper that replaces CR (`\r`) and LF (`\n`) 
characters with underscores
   - Apply sanitization to all log statements that include the `RP_REDIRECT_TO` 
parameter value
   - Sanitize both the raw redirect target and the parsed URI authority in 
warning messages
   
   Co-authored-by: Maia <maia@noreply>


-- 
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