gnodet opened a new pull request, #25066:
URL: https://github.com/apache/camel/pull/25066

   ## Summary
   
   Fix 6 SonarCloud CRITICAL vulnerabilities 
([S5443](https://rules.sonarsource.com/java/RSPEC-S5443/)) across two modules. 
The rule flags code that creates temporary files directly in publicly writable 
directories (e.g., `/tmp`), which is vulnerable to symlink attacks and 
information disclosure.
   
   ### Changes
   
   **`camel-jbang-plugin-tui`** (5 issues):
   - Added `LaunchManager.createSecureTempFile()` — creates a secure temp 
directory with owner-only permissions (`Files.createTempDirectory()`), then 
creates temp files inside it (reused across the TUI session)
   - Updated `ExampleBrowserPopup`, `FolderInputPopup`, `InfraBrowserPopup`, 
and `LaunchManager` to use the new utility
   
   **`camel-console`** (1 issue):
   - Updated `JfrMemoryLeakDevConsole.doStopRecordingAndParse()` to create a 
secure temp directory before the JFR dump file, with cleanup of both in the 
`finally` block
   
   ### SonarCloud Dashboard
   
https://sonarcloud.io/project/issues?id=apache_camel&types=VULNERABILITY&severities=CRITICAL
   
   _Claude Code on behalf of gnodet_
   
   Generated with [Claude Code](https://claude.ai/code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to