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 →
- Check whether any user-controlled input reaches its logs (headers, payloads forwarded by other services).
- Upgrade to a current 2.x release (2.17.1 or later for Java 8+); it is usually a drop-in change.
- If the upgrade is blocked, remove the
JndiLookupclass from the jar as a temporary measure:zip -q -d log4j-core-2.14.1.jar org/apache/logging/log4j/core/lookup/JndiLookup.class - Block outbound LDAP/RMI egress from the service.
- 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.
More on Vulnerability Management and OWASP
A pentest report shows SQL injection in a search endpoint of a Java service. How do you handle it end to end?BeginnerA scanner reports 4,000 open CVEs across 300 images. The team can fix maybe 100 a month. How do you prioritise?IntermediateA user reports they can see another customer's invoice by changing the ID in the URL. What do you do?BeginnerA webhook feature lets users enter a URL, and a pentester used it to read the cloud metadata endpoint. How do you fix it?AdvancedA security review finds passwords stored as unsalted MD5 hashes. How do you migrate without forcing every user to reset?AdvancedYour DAST scan in staging finds reflected XSS in a React app. The developers say React escapes everything. Who is right?Intermediate