-
Notifications
You must be signed in to change notification settings - Fork 240
Open
Description
Bug Name
API Secret Stored as Immutable String in Java
Attack Scenario
Java String objects are immutable and cannot be zeroed from memory. The API secret remains in the JVM heap until garbage collection and may appear in heap dumps.
Impact
Low. Requires heap dump access. Relevant for compliance-sensitive environments.
Components
File: clients/common/src/main/java/com/binance/connector/client/common/sign/HmacSignatureGenerator.java line 10. private final String apiSecret.
Reproduction
- Take a heap dump of a running Java application using the connector.
- Search for API secret string in the heap dump.
- Secret is present and readable.
Fix
Use char[] or byte[] that can be explicitly zeroed after use, following Java security best practices.
Details
Finding ID: LOW-02
Severity: Low
Researcher: Independent Security Researcher -- Mefai Security Team
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels