Skip to content

Commit

Permalink
Fix slash in nginx vhost files against path traversal (ansible-collec…
Browse files Browse the repository at this point in the history
…tions#1184)

* fix: slash in nginx vhost files against path traversal

* Add changelog fragment
  • Loading branch information
dag7dev authored and pyrodie18 committed Apr 14, 2024
1 parent 75f3480 commit 55cc0f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Add slash at the end of the location directives, to prevent path traversal attacks.
4 changes: 2 additions & 2 deletions roles/zabbix_web/templates/nginx_vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ server {
try_files $uri $uri/ =404;
}

location /assets {
location /assets/ {
access_log off;
expires 10d;
}
Expand Down Expand Up @@ -85,7 +85,7 @@ server {
try_files $uri $uri/ =404;
}

location /assets {
location /assets/ {
access_log off;
expires 10d;
}
Expand Down

0 comments on commit 55cc0f5

Please sign in to comment.