2012-03-08 147 views
2

我試圖使我的服務器PCI兼容。我需要解決的最後一個問題之一是從Apache ETag頭中刪除INode。所以我在httpd.conf中定義了這一行:「FileETag MTime Size」只返回MTime大小特定端口的Apache配置設置(PCI合規性)

<Directory "/var/www/html"> 
    Options FollowSymLinks 

    AllowOverride None 

    Order allow,deny 
    Allow from all 

    FileETag MTime Size 
</Directory> 

此修復程序解決問題的標準端口80

現在,我也有主機控制面板(ISPConfig3)在端口8000上運行運行PCI符合性測試後,我得到這個錯誤:

Apache ETag header discloses inode numbers Severity: Potential Problem CVE: CVE-2003-1418 Impact: A remote attacker could determine inode numbers on the server. Resolution Use the http://httpd.apache.org/docs/2.2/mod/core.html#FileETag FileETag directive to remove the INode component from the calculation of the ETag. For example, place the following line in the Apache configuration file to calculate the ETag based only on the file's modification time and size: FileETag MTime Size Vulnerability Details: Service: 8000:TCP

我想我必須在httpd.conf中添加的東西也適用FileETag對所有應用程序運行在端口8000

請指教應該做些什麼。

謝謝! Kelvin

回答

3

聽起來像您的PCI符合性測試已過時。你讀過CVE-2003-1418嗎?

Apache HTTP Server 1.3.22 through 1.3.27 on OpenBSD allows remote attackers to obtain sensitive information via (1) the ETag header, which reveals the inode number, or (2) multipart MIME boundary, which reveals child proccess IDs (PID).

[我稱作Ital]這不是Apache 2.2的一個問題,它採用了不同的Etag算法中。如果你還在運行Apache 1.3,那麼你就會遇到更大的問題,因爲它不再被支持。

您試圖解決一個非問題。獲得最新的PCI符合性測試套件。

1

添加到您的/etc/apache2/http.conf的開頭:

#PCI Compliance fix for "Apache ETag header discloses inode numbers" 
Header unset ETag 
FileETag MTime Size 

這個工作對我的PCI合規性掃描,我不明白爲什麼它不會在所有端口上的工作, Apache偵聽。