mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Detect the issue alias_traversal
This commit is contained in:
parent
9dfa0a53df
commit
4317cbdb6b
1 changed files with 5 additions and 0 deletions
|
@ -357,6 +357,11 @@ CHECK_URL () {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# 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 [...] to fix that.\n" "red" "bold"
|
||||||
|
|
||||||
# Remove the entries in /etc/hosts for the test domain
|
# Remove the entries in /etc/hosts for the test domain
|
||||||
sudo sed --in-place '/#package_check/d' /etc/hosts
|
sudo sed --in-place '/#package_check/d' /etc/hosts
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue