Interview Prep/DevSecOps/Vulnerability Management and OWASP

A team still runs Log4j 2.14 in an internal service and says it is not internet-facing. How do you respond?

IntermediateScenarioVulnerability Management and OWASP
Answer

Situation read → Log4Shell (CVE-2021-44228) is in CISA KEV and triggers on any logged attacker-controlled string, including data that arrives through queues or internal APIs.

What I'd do →

  1. Check whether any user-controlled input reaches its logs (headers, payloads forwarded by other services).
  2. Upgrade to a current 2.x release (2.17.1 or later for Java 8+); it is usually a drop-in change.
  3. If the upgrade is blocked, remove the JndiLookup class from the jar as a temporary measure:
    zip -q -d log4j-core-2.14.1.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
    
  4. Block outbound LDAP/RMI egress from the service.
  5. Set a hard deadline; "internal" is not an accepted risk for a KEV entry.

Why → Internal services get reached through lateral movement and data pipelines. Exploited CVEs are not negotiable.

Interview tip → Note that the old formatMsgNoLookups flag was found to be incomplete.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and OWASP