Fix clear-text logging in admin.py and security_audit.py
This commit is contained in:
@@ -76,6 +76,7 @@ class SecurityAudit:
|
||||
self.results["warnings"].append(issue)
|
||||
|
||||
except Exception as e:
|
||||
# SECURITY FIX: Don't log full exception details to prevent leaking sensitive information
|
||||
logger.error(f"Error in {category_name} check: {type(e).__name__}")
|
||||
self.results["findings"].append({
|
||||
"category": category_name,
|
||||
|
||||
Reference in New Issue
Block a user