log4j
This commit is contained in:
parent
d9192ae1aa
commit
bc328b1163
@ -795,6 +795,21 @@ search:
|
|||||||
type: d
|
type: d
|
||||||
search_in:
|
search_in:
|
||||||
- common
|
- common
|
||||||
|
|
||||||
|
- name: Log4Shell
|
||||||
|
value:
|
||||||
|
config:
|
||||||
|
auto_check: False
|
||||||
|
|
||||||
|
files:
|
||||||
|
- name: "log4j-core*.jar"
|
||||||
|
value:
|
||||||
|
type: f
|
||||||
|
search_in:
|
||||||
|
- common
|
||||||
|
- /lib
|
||||||
|
- /lib32
|
||||||
|
- /lib64
|
||||||
|
|
||||||
- name: OpenVPN
|
- name: OpenVPN
|
||||||
value:
|
value:
|
||||||
|
@ -181,7 +181,7 @@ peass{Ldap}
|
|||||||
if [ "$PSTORAGE_LOG4SHELL" ] || [ "$DEBUG" ]; then
|
if [ "$PSTORAGE_LOG4SHELL" ] || [ "$DEBUG" ]; then
|
||||||
print_2title "Searching Log4Shell vulnerable libraries"
|
print_2title "Searching Log4Shell vulnerable libraries"
|
||||||
printf "%s\n" "$PSTORAGE_LOG4SHELL" | while read f; do
|
printf "%s\n" "$PSTORAGE_LOG4SHELL" | while read f; do
|
||||||
echo "$f" | grep -E "log4j\-core\-(1\.|2\.[0-9][^0-9]|2\.1[0-6])" | sed -${E} "s,log4j\-core\-(1\.|2\.[0-9][^0-9]|2\.1[0-6]),${SED_RED},";
|
echo "$f" | grep -E "log4j\-core\-(1\.[^0]|2\.[0-9][^0-9]|2\.1[0-6])" | sed -${E} "s,log4j\-core\-(1\.[^0]|2\.[0-9][^0-9]|2\.1[0-6]),${SED_RED},";
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user