您在這裡

Execution of arbitrary files in certain Apache configurations

Drupaler's 的頭像
Drupaler (未驗證) 在 2006-05-25 (四) 11:20 發表

------------EXECUTION OF ARBITRARY FILES IN CERTAIN APACHE
CONFIGURATIONS------------

* Advisory ID: DRUPAL-SA-2006-006

* Project: Drupal core

* Date: 2006-May-24

* Security risk: highly critical

* Impact: Drupal core

* Exploitable from: remote

* Vulnerability: Execution of arbitrary files

------------DESCRIPTION------------

Certain -- alas, typical -- configurations of Apache allows execution of
carefully named arbitrary scripts in the files directory. Drupal now will
attempt to automatically create a .htaccess file in your "files" directory
to protect you.

------------VERSIONS AFFECTED------------

- All Drupal versions before 4.6.7 and also Drupal 4.7.0.

------------SOLUTION------------

If you are running Drupal 4.6.x then upgrade to Drupal 4.6.7.
If you are running Drupal 4.7.0 then upgrade to Drupal 4.7.1.

Make sure you have a .htaccess in your "files" dir and it contains this line:

SetHandler This_is_a_Drupal_security_line_do_not_remove

------------REPORTED BY------------

milw0rm

-----------------------------------

所以是在files底下放上.htaccess
裏面只要寫上這一行嗎。
SetHandler This_is_a_Drupal_security_line_do_not_remove

是的沒錯
這兩個都是重大錯誤,別偷懶,記得update一下~

--
from open mind to open source~