This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache_test_config_all_issues.conf
144 lines (144 loc) · 3.91 KB
/
apache_test_config_all_issues.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#############################################################
# This configuration test must trigger ALL audit rules
#############################################################
# See https://httpd.apache.org/docs/2.4/mod
# Point 2.1
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_dbd_module modules/mod_authz_dbd.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule ldap_module modules/mod_ldap.so
# Point 2.2
# LoadModule log_config_module modules/mod_log_config.so
# Point 2.3
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
# Point 2.4
LoadModule status_module modules/mod_status.so
# Point 2.5
LoadModule autoindex_module modules/mod_autoindex.so
# Point 2.6
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_express_module modules/mod_proxy_express.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
# Point 2.7
LoadModule userdir_module modules/mod_userdir.so
# Point 2.8
LoadModule info_module modules/mod_info.so
# Point 2.9
LoadModule mod_auth_digest modules/mod_auth_digest.so
# Point 3.1
User root
Group root
# Point 4.1
<Directory>
Deny all
</Directory>
<Directory "/var/www/html/">
# Point 4.2
Deny all
# Point 5.2
Options all
</Directory>
# Point 4.2
<Location /portal>
Deny all
</Location>
<Directory />
# Point 4.2
Deny all
# Point 4.3
AllowOverrideList
AllowOverride all
# Point 5.1
Options all
# Point 5.3
Options Includes all
</Directory>
# Point 4.4
AllowOverrideList
AllowOverride all
# Point 5.8
# TraceEnable off
# Point 5.9
# LoadModule rewrite_module modules/mod_rewrite.so
# RewriteEngine On
# RewriteCond %{THE_REQUEST} !HTTP/1\.1$
# RewriteRule .* - [F]
# Point 5.11
# <FilesMatch "^.*$">
# Require all denied
# </FilesMatch>
# Point 5.12
# LoadModule rewrite_module modules/mod_rewrite.so
# RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
# RewriteCond %{REQUEST_URI} !^/error [NC]
# RewriteRule ^.(.*) - [L,F]
# Point 5.13
Listen 80
Listen 0.0.0.0:80
Listen [::ffff:0.0.0.0]:80
# Point 5.14
# Header always append X-Frame-Options SAMEORIGIN
# Point 6.1
# LogLevel warn
# Point 6.2
# ErrorLog "syslog:local1"
# Point 6.3
# LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{Useragent}i\"" combined
# CustomLog log/access_log combined
# Point 6.6
# LoadModule security2_module modules/mod_security2.so
# Point 7.1
# LoadModule ssl_module modules/mod_ssl.so
# Point 7.4
SSLProtocol TLSv1
# Point 7.5
# SSLHonorCipherOrder On
# SSLCipherSuite EECDH:EDH:!NULL:!SSLv2:!RC4:!aNULL:!3DES:!IDEA
# Point 7.6
SSLInsecureRenegotiation on
# Point 7.7
SSLCompression on
# Point 7.11
# SSLUseStapling On
# SSLStaplingCache "shmcb:logs/ssl_staple_cache(512000)"
# Point 7.12
# Header always set Strict-Transport-Security "max-age=600"
# Point 7.13
# SSLCipherSuite ECDHE:DHE:!NULL:!SSLv2:!RC4:!aNULL:!3DES:!IDEA
# Point 8.1
# ServerTokens Prod
# Point 8.2
ServerSignature On
# Point 8.4
FileETag all
# Point 9.1
Timeout 11
# Point 9.2
# KeepAlive On
# Point 9.3
MaxKeepAliveRequests 80
# Point 9.4
KeepAliveTimeout 16
# Point 9.5 and 9.6
# LoadModule reqtimeout_module modules/mod_reqtimeout.so
RequestReadTimeout header=20-45,MinRate=500 body=25,MinRate=500
# Point 10.1
LimitRequestline 612
# Point 10.2
LimitRequestFields 150
# Point 10.3
LimitRequestFieldsize 1136
# Point 10.4
LimitRequestBody 103400