Summary
Chartbrew API connection operations allow a user with connection-management permission to enable an internal setting that bypasses restrictions on private and reserved network destinations. If the Chartbrew server can reach an internal HTTP service, this may let the user access that service or trigger actions through it; recognized cloud metadata endpoints remain separately blocked.
Affected context
The issue affects Chartbrew versions 4.8.5 through 5.2.2 when API connection creation or updates accept the internal allowPrivateHost field from user input. An upgrade migration also enables the override on pre-existing connections. This per-connection setting takes precedence over CB_ALLOW_PRIVATE_NETWORK_CALLS, so disabling that instance option alone does not protect connections with the override enabled.
Exploit preconditions
- Attack surface: Chartbrew API connection creation and update operations
- Required access: An authenticated account with permission to manage API connections
- Trigger point: Creating or updating a connection with the internal private-host override enabled, or using a pre-existing connection where a migration enabled it
- Why exploitation is possible: The connection-level override bypasses private and reserved-network destination restrictions, allowing requests to internal HTTP services reachable from the Chartbrew server
Why this happens
The application accepts a security-sensitive destination restriction override from user-controlled input and applies it to API connections. This creates a server-side request forgery condition: requests made by the server can be directed to private or reserved network destinations without the intended safeguards. The issue maps to CWE-918: Server-Side Request Forgery (SSRF).
Potential impact
- A user with connection-management access may be able to make Chartbrew request internal HTTP services.
- Responses from reachable services could disclose information.
- Requests could trigger unauthorized actions on internal services, depending on their behavior and authentication controls.
- The override on migrated connections could leave destinations accessible even when the instance-level setting is disabled.
- Recognized cloud metadata endpoints remain separately blocked.
General mitigation guidance
Defensive patterns should keep destination restrictions under trusted administrative control rather than allowing connection input to weaken them.
- Enforce private and reserved-network destination checks consistently at the request boundary.
- Do not expose internal security override fields through user-controlled connection operations.
- Apply consistent policy to existing and newly created connections during migrations.
- Use allowlists for permitted destinations and limit outbound network access from the application.
- Run the application with least privilege and restrict access to connection-management capabilities.
- Treat instance-level settings and per-connection configuration as a unified policy so that a local override cannot silently weaken protections.
How teams detect issues like this
- Review API schemas, request handlers, and persistence logic for security-sensitive fields accepted from user input, especially destination restriction overrides.
- Use static analysis and code review checks to identify server-side HTTP requests whose destinations are influenced by connection data without consistent validation.
- Audit existing connections for enabled private-host overrides, including records affected by migrations.
- Monitor application egress and alert on requests to private or reserved network ranges, while accounting for legitimate internal integrations.
- Enforce policy checks in CI or automated reviews to prevent user-controlled configuration from weakening network restrictions.

