accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] milleruntime commented on a change in pull request #628: Add sec-bugs plugin. Closes #618
Date Wed, 05 Sep 2018 15:42:21 GMT
milleruntime commented on a change in pull request #628: Add sec-bugs plugin. Closes #618
URL: https://github.com/apache/accumulo/pull/628#discussion_r215323924
 
 

 ##########
 File path: core/src/main/java/org/apache/accumulo/core/client/impl/TableOperationsImpl.java
 ##########
 @@ -1536,6 +1537,14 @@ public void importTable(String tableName, String importDir)
 
   }
 
+  /**
+   * Prevent potential CRLF injection into logs from read in user data
+   * See https://find-sec-bugs.github.io/bugs.htm#CRLF_INJECTION_LOGS
+   */
+  private String sanitize(String msg) {
+    return msg.replaceAll("[\r\n]","");
 
 Review comment:
   I kept the function because I like having the comment, explaining why.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message