[20/20] Core Update 157: Apply changed permissions to /srv/web/ipfire/cgi-bin/cachemgr.cgi

Message ID 3b0ba7cd-9f63-20b4-86d0-279183c59aac@ipfire.org
State Accepted
Commit cd1f7722dccb681884e8595e23b4c3cfaba5d0fd
Headers
Series Prevent "nobody" from escalating privileges by using writeable binaries as a vehicle |

Commit Message

Peter Müller May 17, 2021, 7:07 p.m. UTC
  Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/rootfiles/core/157/update.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
  

Patch

diff --git a/config/rootfiles/core/157/update.sh b/config/rootfiles/core/157/update.sh
index d71c9688c..ce7b6f5bf 100644
--- a/config/rootfiles/core/157/update.sh
+++ b/config/rootfiles/core/157/update.sh
@@ -109,8 +109,12 @@  chmod -x \
 	/var/ipfire/fwhosts/icmp-types \
 	/var/ipfire/ovpn/ovpn-leases.db
 
-chown -R root:root /var/ipfire/urlfilter/bin
-chown -R root:root /var/ipfire/updatexlrator/bin
+chown -R root:root \
+	/var/ipfire/updatexlrator/bin \
+	/var/ipfire/urlfilter/bin
+
+chown root:root \
+	/srv/web/ipfire/cgi-bin/cachemgr.cgi
 
 # Delete scrubbed files
 rm -f \