mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Bigger alias_traversal
This commit is contained in:
parent
d692432d6b
commit
f28185e5cc
2 changed files with 6 additions and 1 deletions
|
@ -727,6 +727,10 @@ TEST_RESULTS () {
|
|||
global_level=0
|
||||
fi
|
||||
|
||||
if [ $RESULT_alias_traversal -eq 1 ]
|
||||
then
|
||||
ECHO_FORMAT "Issue alias_traversal was detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold"
|
||||
fi
|
||||
|
||||
# Then, print the levels
|
||||
# Print the global level
|
||||
|
@ -789,6 +793,7 @@ LXC_INIT
|
|||
initialize_values() {
|
||||
# Test results
|
||||
RESULT_witness=0
|
||||
RESULT_alias_traversal=0
|
||||
RESULT_linter=0
|
||||
RESULT_global_setup=0
|
||||
RESULT_global_remove=0
|
||||
|
|
|
@ -360,7 +360,7 @@ CHECK_URL () {
|
|||
# Detect the issue alias_traversal, https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
|
||||
curl --location --insecure --silent $check_domain$check_path../html/index.nginx-debian.html \
|
||||
| grep "title" | grep --quiet "Welcome to nginx on Debian" \
|
||||
&& ECHO_FORMAT "Issue alias_traversal detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold"
|
||||
&& ECHO_FORMAT "Issue alias_traversal detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold"; RESULT_alias_traversal=1
|
||||
|
||||
# Remove the entries in /etc/hosts for the test domain
|
||||
sudo sed --in-place '/#package_check/d' /etc/hosts
|
||||
|
|
Loading…
Add table
Reference in a new issue