Summary
DeepAudit exposes server secrets through the /api/v1/config/defaults endpoint without requiring authentication. An unauthenticated attacker who can reach the endpoint may retrieve configured LLM provider API keys and GitHub or GitLab tokens, then use them to access connected services or repositories.
Affected context
The issue affects DeepAudit deployments where the /api/v1/config/defaults endpoint is reachable without an effective authentication or access-control boundary. Risk depends on network exposure and on whether the returned configuration contains active provider keys or source-control tokens.
Exploit preconditions
- Attack surface: The DeepAudit HTTP API, specifically
/api/v1/config/defaults - Required access: No authentication is required when the endpoint is exposed as described
- Trigger point: A GET request to the endpoint
- Why exploitation is possible: The endpoint returns sensitive configuration values without first requiring authentication
Why this happens
The endpoint makes sensitive configuration available without verifying the identity of the requester. This is a missing authentication control for a critical function, mapping to CWE-306. Secrets intended for operator or service use are exposed through an API response rather than being restricted to authorized callers.
Potential impact
- Attackers may obtain LLM provider API keys and incur unauthorized usage or access provider resources.
- Exposed GitHub or GitLab tokens could allow access to repositories or other token-authorized actions.
- Compromised credentials could be reused for further access to connected services.
- Disclosure may increase the risk of follow-on compromise, depending on token scope and deployment controls.
General mitigation guidance
Defensive patterns focus on keeping secrets out of public responses and enforcing access control at sensitive API boundaries.
- Require authentication and appropriate authorization before returning configuration data.
- Exclude secrets from defaults or diagnostic responses; return only non-sensitive configuration needed by clients.
- Store credentials in protected secret-management systems and limit their scope and privileges.
- Apply network access restrictions as an additional layer, not as a substitute for endpoint authentication.
- Review and rotate potentially exposed credentials, and use controls that reduce the impact of misuse.
How teams detect issues like this
Review API handlers and routes that return configuration or diagnostic data for missing authentication and authorization checks. Static analysis and code review can flag sensitive response fields, secret access, and routes that bypass shared middleware. Policy checks can require authentication on sensitive endpoints and prevent credentials from appearing in API responses. Monitoring for unusual requests to the defaults endpoint and unexpected use of provider or source-control tokens can help identify possible exposure.

