41dbad5d1e
FIXES APPLIED: 1. Printf format string vulnerability in show_spinner() - Lines 733, 736: Use proper %s formatting for message variable - Prevents format string attacks if function is called with % in message - Currently dead code (never called), but good practice for future reuse 2. Maldet PID validation - strengthen edge case handling - Line 1273: Add explicit [ "$pid" -gt 0 ] check before kill -0 - Prevents theoretical edge case where $! could be 0 - Makes PID validation more robust against edge cases These are hardening fixes for LOW-risk issues found in comprehensive audit. AUDIT SUMMARY (Passes 7-9): - 4 low-risk issues identified through deep scrutiny - 2 issues fixed (printf format string, PID validation) - 2 issues noted but deferred (negative elapsed time, timeout documentation) - Script remains in excellent condition for production testing All critical and blocking issues resolved ✅ Script ready for comprehensive functional testing ✅