Skip to content

Fix information exposure by removing printStackTrace#8

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

Fix information exposure by removing printStackTrace#8
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-2RY3BnSz

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


Remove printStackTrace to prevent stack trace info exposure in src/scala/com/twitter/recos/hose/common/UnifiedGraphWriter.scala (Line: 120)

Risk: Exception.printStackTrace() printed full stack traces to stderr during Kafka hose initialization failures, potentially exposing internal class names, file paths, and other sensitive implementation details (CWE-209).

Fix: Removed the direct printStackTrace() call and relied on structured logging via log.error(e, e.toString) so exceptions are captured by the service logging pipeline without uncontrolled stderr output.


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