Skip to content

Fix stack trace information exposure in Main.scala#7

Open
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-D-80jFKV
Open

Fix stack trace information exposure in Main.scala#7
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-D-80jFKV

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


Remove printStackTrace to prevent stack trace information exposure in timelineranker/server/src/main/scala/com/twitter/timelineranker/server/Main.scala (Line: 177)

Risk: Exception.printStackTrace() wrote detailed stack traces (class names, paths, line numbers) directly to stderr, exposing internal implementation details (CWE-209) that could aid attackers.

Fix: Removed the direct printStackTrace() call and relied on the existing structured logger (mainLogger.error(e, ...)) to capture the exception in a controlled way.

Review notes: Stack traces will now only be emitted through the configured logging pipeline rather than standard error.


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