Skip to content

Fix CWE-209 stack trace information exposure in UnifiedGraphWriterMulti#9

Open
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-uOYiTn93
Open

Fix CWE-209 stack trace information exposure in UnifiedGraphWriterMulti#9
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-uOYiTn93

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


Remove printStackTrace to prevent exception info exposure in src/scala/com/twitter/recos/hose/common/UnifiedGraphWriterMulti.scala (Line: 126)

Risk: Exception.printStackTrace() printed detailed internal stack traces to stderr, exposing implementation details and potentially sensitive data (CWE-209).

Fix: Removed printStackTrace() and replaced it with structured error logging via log.error(e, ...), preserving diagnostics in application logs without dumping stack traces to standard error.

Review notes: Logging output changes slightly (new message text), but error handling/cleanup behavior is unchanged.


Generated by BoostSecurity Advisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant