Skip to content

fix: remove hardcoded secret in DeepLTranslateService.scala (CWE-798) - #430

Open
anupamme wants to merge 1 commit into
Insubric:mainfrom
anupamme:fix-repo-box-deepl-apikey-log-exposure
Open

anupamme wants to merge 1 commit into
Insubric:mainfrom
anupamme:fix-repo-box-deepl-apikey-log-exposure

Conversation

@anupamme

@anupamme anupamme commented Oct 8, 2026

Copy link
Copy Markdown

The DeepLTranslateService.scala file contains a debug statement that prints the complete HTTP request including the Authorization header with the API key to standard output. This debug output may be captured in application logs, exposing the API key to anyone with access to log files or monitoring systems. The affected code is server/src/main/scala/ch/wsl/box/services/translation/DeepLTranslateService.scala:15. This change is the fix I would apply.

Reference: CWE-798

What changed

  • server/src/main/scala/ch/wsl/box/services/translation/DeepLTranslateService.scala

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security

This branch has not been deployed

No deployments
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