CWE-532 通过日志文件的信息暴露 类弱点 604 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-532指将敏感信息写入日志文件的漏洞,属于信息泄露类安全风险。攻击者常通过读取服务器日志或访问日志存储位置,窃取密码、密钥或个人隐私数据,进而实施身份冒充或横向移动。开发者应避免在日志中记录明文凭证、会话令牌或敏感业务数据,采用数据脱敏、加密存储及严格的日志访问控制机制,确保仅记录必要的非敏感审计信息,从而降低数据泄露风险。
logger.info("Username: " + usernme + ", CCN: " + ccn);locationClient = new LocationClient(this, this, this); locationClient.connect(); currentUser.setLocation(locationClient.getLastLocation()); ... catch (Exception e) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage("Sorry, this application has experienced an error."); AlertDialog alert = builder.create(); alert.show(); Log.e("ExampleActivity", "Caught exception: " + e + " While on User:" + User.toString()); }CWE-532(通过日志文件的信息暴露) 是常见的弱点类别,本平台收录该类弱点关联的 604 条 CVE 漏洞。