Skip to content

Fix information exposure by removing printStackTrace#6

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

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

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


Remove stack trace printing from RecosEdgeProcessor in src/scala/com/twitter/recos/hose/common/RecosEdgeProcessor.scala (Line: 36)

Risk: Exception.printStackTrace() wrote detailed stack traces to stderr, exposing internal code structure and potentially sensitive details (CWE-209).

Fix: Replaced printStackTrace() with structured logging via com.twitter.logging.Logger.error(e, ...) while keeping the existing error counter behavior.

Review notes: This changes where exception details go (service logs instead of stderr) but preserves the method’s functional behavior (still returns Future.Unit).


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