Summary
rConfig Core has a server-side request forgery (SSRF) flaw in its device configuration download flow. An authenticated user may bypass a loopback-address check with a hostname that resolves to loopback, potentially causing requests to reach a local Redis service and send commands that could lead to remote code execution.
Affected context
The issue is described for rConfig Core versions before 8.2.22, including 8.2.19. It arises when an authenticated user can create a device using a hostname that resolves to a loopback address and set a device port override. During a configuration download, the application may make a request to that destination without the loopback guard correctly accounting for hostname resolution.
Exploit preconditions
- Attack surface: Device creation and configuration downloads in rConfig Core
- Required access: An authenticated account with permission to create or configure devices
- Trigger point: A configuration download for a device using a hostname and port override
- Why exploitation is possible: The loopback guard can be bypassed with an unresolved hostname that resolves to loopback, allowing the request to reach a local service. The described scenario targets Redis on port 6379.
Why this happens
The application does not reliably validate the final network destination of a request when a hostname is supplied. If validation is performed on the hostname before resolving it, a hostname that resolves to a prohibited loopback address may evade the check. This is a server-side request forgery weakness, mapped to CWE-918, because user-influenced values can cause the server to make requests to unintended destinations.
Potential impact
- Requests may reach services bound to loopback addresses.
- Redis may receive inline commands through the configuration download flow.
- If the reachable Redis service and its configuration permit the described behavior, an attacker may achieve remote code execution.
- The rConfig host and data it can access may be exposed to further compromise.
General mitigation guidance
Defensive patterns include validating the resolved destination address immediately before connecting and rejecting loopback, private, link-local, and otherwise disallowed ranges where appropriate. Prefer allowlisting approved device destinations and ports over accepting arbitrary hostnames or overrides, and apply strict input validation to device settings. Network egress controls can limit access to local and internal services; Redis and other sensitive services should not be reachable from application workflows unless explicitly required. Run application components with least privilege and restrict their access to secrets and other systems.
How teams detect issues like this
- Review code paths that accept user-controlled hostnames or port overrides and initiate server-side network requests.
- Use static analysis and code review checks for destination validation performed before DNS resolution, missing IP-range checks, or redirect and DNS-rebinding risks.
- Monitor device configuration changes and downloads involving loopback or other restricted destinations.
- Enforce egress policies and alert on unexpected connections from rConfig components to Redis or other internal services.
- Automated security review tools may help identify SSRF patterns and verify that destination checks are applied at connection time.

