cziegeler opened a new pull request, #35:
URL: https://github.com/apache/sling-org-apache-sling-junit-core/pull/35

   Prevents log injection attacks by escaping CR and LF characters in the 
JaCoCo sessionId before it is written to the log.
   
   - Added `sanitizeForLog` helper in `JacocoServlet` that replaces `\r` and 
`\n` with their escaped string representations
   - Updated the sessionId log statement to pass the value through 
`sanitizeForLog`
   - Added `JacocoServletTest` with three test cases covering line-break 
escaping, safe values, and null input
   
   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