🔒 [security fix] Replace System.out/err with Logger to prevent debug information leakage#1
🔒 [security fix] Replace System.out/err with Logger to prevent debug information leakage#1ROOCKY-dev wants to merge 1 commit into
Conversation
…n leakage - Modified com.roockydev.mactouchmc.Logger to make it public and accessible from other packages. - Replaced System.out.println in LayoutManager with Logger.log(Level.DEBUG, ...). - Replaced System.out.println and System.err.println in VirtualInputHandler and ConfigParser with appropriate Logger calls. - Cleaned up commented-out debug code in KeyReleaseManager. - Commented out hardcoded org.gradle.java.home in gradle.properties to improve portability.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR addresses a security vulnerability where debug information was being leaked via standard output/error.
🎯 What: The vulnerability fixed is "Debug Information Leakage via Standard Output".
⚠️ Risk: Sensitive internal state or debugging information could be exposed in system logs, which might be accessible to unauthorized users or processes.
🛡️ Solution: All instances of
System.out.printlnandSystem.err.printlnhave been replaced with a proper logging framework (Log4jvia a project-specificLoggerwrapper). This allows for better control over log levels and ensures that debug information is only logged when explicitly enabled in the configuration. Additionally, theLoggerutility was made public to facilitate its use throughout the project.PR created automatically by Jules for task 2430440471207667121 started by @ROOCKY-dev