Skip to content

Fix stack trace info exposure in Main.scala#14

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

Fix stack trace info exposure in Main.scala#14
victor-nb wants to merge 1 commit intomainfrom
boost-advisor/fix-ZU0pPtgD

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() printed full stack traces to stderr, exposing internal class/method names, file paths, and potentially sensitive details (CWE-209).

Fix: Removed the printStackTrace() call and relied on the existing structured logger (mainLogger.error(e, ...)) to capture exception details in the configured logging destination.

Review notes: Logging still includes the throwable as before, but no longer writes an additional raw stack trace to stderr.


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