Skip to content

Fix information exposure by removing printStackTrace#11

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

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

Conversation

@victor-nb
Copy link
Copy Markdown

Summary

This PR fixes 1 security vulnerability identified by BoostSecurity.


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

Risk: Exception.printStackTrace() exposed internal class/method names, file paths, and potentially sensitive data via stderr, enabling information disclosure (CWE-209).

Fix: Replaced printStackTrace() with structured logging via com.twitter.util.logging.Logger (log.error(e, ...)) while keeping existing counters and behavior (swallowing the exception and returning Future.Unit).

Review notes: Error output now goes through the standard logger rather than raw stack trace printing.


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