mirror of https://github.com/CISOfy/lynis.git
Hide RPM related database errors, show suggestion instead
This commit is contained in:
parent
410861f4df
commit
46de3f8d99
|
@ -167,10 +167,11 @@
|
|||
logtext "Test: Querying 'rpm -qa' to get package list"
|
||||
Display --indent 6 --text "- Querying RPM package manager"
|
||||
logtext "Output:"; logtext "--------"
|
||||
SPACKAGES=`${RPMBINARY} -qa | sort`
|
||||
SPACKAGES=`${RPMBINARY} -qa 2> /dev/null | sort`
|
||||
if [ "${SPACKAGES}" = "" ]; then
|
||||
logtext "Result: RPM binary available, but package list seems to be empty"
|
||||
logtext "Info: looks like the rpm binary is installed, but not used for package installation"
|
||||
ReportSuggestion "${TEST_NO}" "Check RPM database as RPM binary available but does not reveal any packages"
|
||||
else
|
||||
for J in ${SPACKAGES}; do
|
||||
N=`expr ${N} + 1`
|
||||
|
|
|
@ -251,9 +251,10 @@
|
|||
rm -f ${SHELLSHOCK_TMP}
|
||||
if [ ! "${VULNERABLE}" = "" ]; then
|
||||
logtext "Output: ${VULNERABLE}"
|
||||
logtext "Result: Vulnerable to original shellshock (CVE-2014-6277)"
|
||||
logtext "Result: Vulnerable to original shellshock (CVE-2014-6277). This may not be a security risk, as distributions patched it. Still it shows your bash is vulnerable for crashing."
|
||||
Display --indent 2 --text "- Shellshock: CVE-2014-6277 (segfault, lcamtuf bug #1)" --result "WARNING" --color RED
|
||||
FOUND=1
|
||||
# Do not trigger the warning for this particular test. Most distributions did actually patch it to reduce the security risks, while allowing it still to segfault.
|
||||
#FOUND=1
|
||||
else
|
||||
logtext "Result: Not vulnerable to original shellshock (CVE-2014-6277)"
|
||||
#Display --indent 4 --text "- CVE-2014-6277 (segfault, lcamtuf bug #1)" --result "OK" --color GREEN
|
||||
|
|
Loading…
Reference in New Issue