From 54fddeea76fe794da8d6038c439948a1990072f7 Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Thu, 15 Jun 2023 15:03:11 +0100 Subject: [PATCH] Lab update --- .../hackerbot_config/hbpam/templates/intro.md.erb | 2 +- .../unix/webapp/gitlist_040/manifests/configure.pp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/generators/structured_content/hackerbot_config/hbpam/templates/intro.md.erb b/modules/generators/structured_content/hackerbot_config/hbpam/templates/intro.md.erb index 673f002d4..555bf3f58 100644 --- a/modules/generators/structured_content/hackerbot_config/hbpam/templates/intro.md.erb +++ b/modules/generators/structured_content/hackerbot_config/hbpam/templates/intro.md.erb @@ -188,7 +188,7 @@ Briefly describe what each of the following PAM configurations do: `session optional pam_mkhomedir.so skel=/etc/skel umask=077` -`auth required pam_access.so, /etc/security.access.conf` +`auth required pam_access.so, /etc/security/access.conf` ## Secure Shell (SSH) Password-less Authentication diff --git a/modules/vulnerabilities/unix/webapp/gitlist_040/manifests/configure.pp b/modules/vulnerabilities/unix/webapp/gitlist_040/manifests/configure.pp index 3ed9f4eec..667a4ffdd 100644 --- a/modules/vulnerabilities/unix/webapp/gitlist_040/manifests/configure.pp +++ b/modules/vulnerabilities/unix/webapp/gitlist_040/manifests/configure.pp @@ -29,7 +29,9 @@ class gitlist_040::configure { file { $leaked_files_path: ensure => directory, - before => Exec['create-repo-file_leak'] + before => Exec['create-repo-file_leak'], + owner => 'www-data', + mode => '0700' } -> exec { 'create-repo-file_leak':