Redact sensitive duplicate query parameter values in ApiServlet logs#13559
Redact sensitive duplicate query parameter values in ApiServlet logs#13559dheeraj12347 wants to merge 2 commits into
Conversation
|
@dheeraj12347 , do you think this can be applied on older LTS branches (i.e. 4.20) |
From the scope of the change, it looks like a good candidate for backporting since it's localized to ApiServlet and doesn't change request processing behavior. I haven't verified it against the 4.20 branch yet, but I'm happy to check compatibility there and prepare a backport if needed. |
if you can check please. always good to have these kinds of fixes on all open LTS branches. |
As requested, I've prepared the manual backport for the 4.20 LTS branch: #13677. |
Summary
This PR fixes a sensitive information disclosure issue in
ApiServletwhere duplicate sensitive query parameter values were logged in plaintext before authentication.Previously, when duplicate query parameters such as
passwordwere received,checkSingleQueryParameterValue()logged all values usingArrays.toString(...), which could expose sensitive information in management logs even if the request was later rejected.Changes
getCleanParamsString()to avoid duplicating sensitive parameter detection logic.Testing
[REDACTED, REDACTED].Fixes #13311