public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] force transport encryption for WebUI logins
@ 2017-09-08 17:19 Peter Müller
  2017-09-23 17:53 ` Matthias Fischer
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Müller @ 2017-09-08 17:19 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 2581 bytes --]

Force SSL/TLS for any WebUI directory which requires an authentication.
This prevents credentials from being transmitted in plaintext, which is
an information leak.

Scenario: A MITM attacker might block all encrypted traffic to the
firewall's web interface, making the administrator using an unencrypted
connection (i.e. via port 81). Username and password can be easily
logged in transit then.

Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
---
diff --git a/config/httpd/vhosts.d/ipfire-interface-ssl.conf b/config/httpd/vhosts.d/ipfire-interface-ssl.conf
index 6f353962e..5ceaa1f32 100644
--- a/config/httpd/vhosts.d/ipfire-interface-ssl.conf
+++ b/config/httpd/vhosts.d/ipfire-interface-ssl.conf
@@ -24,6 +26,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user admin
+        Require ssl
     </DirectoryMatch>
     ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/
     <Directory /srv/web/ipfire/cgi-bin>
@@ -33,6 +36,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user admin
+        Require ssl
         <Files chpasswd.cgi>
             Require all granted
         </Files>
@@ -50,6 +54,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user dial admin
+        Require ssl
     </Directory>
     <Files ~ "\.(cgi|shtml?)$">
 	SSLOptions +StdEnvVars
@@ -86,5 +91,6 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user admin
+        Require ssl
     </Directory>
 </VirtualHost>
diff --git a/config/httpd/vhosts.d/ipfire-interface.conf b/config/httpd/vhosts.d/ipfire-interface.conf
index 619f90fcc..58d1b54cd 100644
--- a/config/httpd/vhosts.d/ipfire-interface.conf
+++ b/config/httpd/vhosts.d/ipfire-interface.conf
@@ -16,6 +16,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user admin
+        Require ssl
     </DirectoryMatch>
     ScriptAlias /cgi-bin/ /srv/web/ipfire/cgi-bin/
     <Directory /srv/web/ipfire/cgi-bin>
@@ -25,6 +26,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user admin
+        Require ssl
          <Files chpasswd.cgi>
             Require all granted
         </Files>
@@ -42,6 +44,7 @@
         AuthType Basic
         AuthUserFile /var/ipfire/auth/users
         Require user dial admin
+        Require ssl
     </Directory>
     Alias /updatecache/ /var/updatecache/
 	<Directory /var/updatecache>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-09-24  7:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 17:19 [PATCH] force transport encryption for WebUI logins Peter Müller
2017-09-23 17:53 ` Matthias Fischer
2017-09-23 18:06   ` Peter Müller
2017-09-23 18:19     ` Peter Müller
2017-09-23 19:18       ` Tom Rymes
2017-09-23 19:26         ` Michael Tremer
2017-09-23 19:56           ` Peter Müller
2017-09-23 21:03             ` Michael Tremer
2017-09-24  7:11               ` Peter Müller
2017-09-23 19:35       ` Matthias Fischer
2017-09-23 20:08         ` Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox