You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2022/01/03 17:06:11 UTC

[GitHub] [fluo-muchos] arvindshmicrosoft opened a new pull request #425: Mitigate Log4Shell issues in ELK stack

arvindshmicrosoft opened a new pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425


   Fixes #418.
   
   Muchos can be used to deploy an optional `elkserver` role wherein
   OSS versions of the ELK stack are deployed (see #338).
   
   Elasticsearch and Logstash are among the external packages deployed
   when the `elkserver` role is optionally assigned to hosts in muchos.props.
   Both those packages use an older version of log4j2 which is vulnerable
   to the following known issues:
   
   https://nvd.nist.gov/vuln/detail/CVE-2021-44228
   &
   https://nvd.nist.gov/vuln/detail/CVE-2021-45046
   
   ElasticSearch and Logstash and have addressed these
   vulnerabilities in their 7.16.2 releases. However, due to licensing
   issues the last OSS ELK stack version is 7.10.2, which requires the
   removal of the JNDI class for mitigation.
   
   Hence, we mitigate the known vulnerabilities by deleting the JNDI class
   from the older log4j2-core JAR deployed by those external components.


-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] arvindshmicrosoft commented on a change in pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on a change in pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425#discussion_r777719831



##########
File path: ansible/roles/elasticsearch/tasks/main.yml
##########
@@ -82,6 +82,10 @@
     enabled: yes
   become: true
 
+- name: remove jndi plugin from log4j jar to mitigate log4shell
+  shell: zip -q -d /usr/share/elasticsearch/lib/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class

Review comment:
       Thanks @keith-turner - this is actually a [published](https://logging.apache.org/log4j/2.x/security.html) and accepted mitigation per the log4j team themselves. I don't think it is worthwhile trying anything else out given the ELK stack is completely unrelated to our primary focus here in Accumulo.
   
   ![image](https://user-images.githubusercontent.com/16342666/147983787-98b43e41-0e90-46c8-aabf-18053cf9df59.png)
   




-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] arvindshmicrosoft merged pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft merged pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425


   


-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] arvindshmicrosoft commented on pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft commented on pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425#issuecomment-1004381235


   > I was unaware of a licensing change around ELK stack. After seeing this PR I looked into it and I have been reading : https://www.elastic.co/pricing/faq/licensing#summary-of-licensing-change . Am I looking in the correct direction? Is there anything additional specific to Apache worth looking at?
   
   Correct, this was a learning for me as well. 7.10.2 is the last released OSS version from them.


-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] arvindshmicrosoft edited a comment on pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
arvindshmicrosoft edited a comment on pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425#issuecomment-1004381235


   > I was unaware of a licensing change around ELK stack. After seeing this PR I looked into it and I have been reading : https://www.elastic.co/pricing/faq/licensing#summary-of-licensing-change . Am I looking in the correct direction? Is there anything additional specific to Apache worth looking at?
   
   Correct, this was a learning for me as well. 7.10.2 is the last released "OSS" (i.e. Apache 2.0 licensed) version from them.


-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] keith-turner commented on pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
keith-turner commented on pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425#issuecomment-1004380528


   I was unaware of a licensing change around ELK stack.  After seeing this PR I looked into it and I have been reading : https://www.elastic.co/pricing/faq/licensing#summary-of-licensing-change  .  Am I looking in the correct direction?  Is there anything additional specific to Apache worth looking at?


-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #425: Mitigate Log4Shell issues in ELK stack

Posted by GitBox <gi...@apache.org>.
keith-turner commented on a change in pull request #425:
URL: https://github.com/apache/fluo-muchos/pull/425#discussion_r777718261



##########
File path: ansible/roles/elasticsearch/tasks/main.yml
##########
@@ -82,6 +82,10 @@
     enabled: yes
   become: true
 
+- name: remove jndi plugin from log4j jar to mitigate log4shell
+  shell: zip -q -d /usr/share/elasticsearch/lib/log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class

Review comment:
       Wondering if instead of modifying the jar that is there we could insead delete the log4j jar and copy in a new version.  Not sure if this would work.




-- 
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: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org