Log4j2 Vulnerability The Perfect Server - Debian 10 (Buster) with Apache, BIND, Dovecot, PureFTPD an

Discussion in 'General' started by onastvar, Dec 11, 2021.

  1. onastvar

    onastvar Member

    Regarding Log4j2 Vulnerability that was in the news recently.
    I just wanted to check with community would servers that have setup following tutorial
    "The Perfect Server - Debian 10 (Buster) with Apache, BIND, Dovecot, PureFTPD"
    be affected with Log4j2 Vulnerability?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Log4j is a JAVA log library. JAVA is not installed or used in the software Stack of the perfect server tutorial.
     
    onastvar and Taleman like this.
  3. brainsys

    brainsys Member

    Thanks for the confirmation Till. I had done a find / -name "log4j*" on my servers and all it found was some .conf files here - but no jars.
    /usr/share/doc/liblog-log4perl-perl/examples/log4j*

    I guess other SysAdmins won't be sleeping so soundly tonight ...
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do a
    Code:
    apt policy liblog4j2-java
    
    to see if the package is installed.
     
    onastvar likes this.
  5. brainsys

    brainsys Member

    Thanks - but a worrying feature is all the buster repositories I tested offered 2.11 - not the fixed 2.15.

    2.11 risk can be mitigated by setting system property "log4j2.formatMsgNoLookups" to "true" or removing the JndiLookup class from the classpath
    [https://www.ncsc.gov.uk/news/apache-log4j-vulnerability]
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If you look at the paths, then you see that you are not affected:

    /usr/share/doc/: contains documentation files (manuals and example configs) only.
    /usr/share/doc/liblog-log4perl-perl: The path says that the documentation is for the Perl library log4perl and not log4j.
    /usr/share/doc/liblog-log4perl-perl/examples/: Ok, so we are looking now at example config files of the program log4perl.
    /usr/share/doc/liblog-log4perl-perl/examples/log4j*: So we have there example files for log4perl in conjunction with log4j.

    As you can see, you do not even have log4j installed, you just grepped trough the documentation folders of other unrelated software and there you found a documentation example on how to use that other software together with log4j.

    I guess most sysadmins slept very well as it's just a certain JAVA library and most systems will not use it.
     
    onastvar likes this.
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Why do you worry about software that you don't even use? Makes no sense to me.
     
    onastvar likes this.
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Not sure if you are aware that the version number does not indicate if it's fixed or not in Debian. Debian patches software to fix issues without increasing the manufacturers version number. So if you want to know if an issue is fixed in a specific Debian package, then you must look at the patch history e.g. on the Debian package website of that package and not the version number of the installed software.
     
    onastvar likes this.

Share This Page