coheigea opened a new pull request, #3749: URL: https://github.com/apache/cxf/pull/3749
SearchUtils.duplicateSingleQuoteIfNeeded makes a value safe to put inside quotes in a SQL query by doubling every single quote. It had a shortcut: if the value already contained two quotes in a row, it assumed the value was already safe and returned it unchanged. An attacker could exploit this by including '' in their input, after which the rest of their quotes went through unescaped. For example, a'' OR '1'='1 could change the query’s logic. Now the method always doubles every quote. Callers that pass ordinary values see no difference. The only callers affected are ones that escaped a value themselves before calling the method: their value now gets escaped twice. Nothing in CXF itself calls this method. -- 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]
