Guard Core fixes X-Forwarded-For validation flaw in pipguard-core

  • Guard Core
  • Redis
  • X-Forwarded-For

The flaw could affect Redis and behavioral analytics when the header value was attacker-controlled

Version 3.13.0 includes the fix; the issue was not reachable with default settings

Guard Core fixed a vulnerability in pipguard-core that allowed unvalidated X-Forwarded-For header values to be used in Redis key names and KEYS glob patterns. The fix is included in version 3.13.0.

The flaw arose because the package selected an X-Forwarded-For entry without checking that it was a valid IP address. When the selected value was attacker-controlled, it passed into the behavioral-analytics component, which inserted it into Redis keys and patterns used to search keys.

The issue could affect the integrity and availability of the behavioral-analytics subsystem and the shared Redis instance in deployments where the selected header position was controllable by an attacker. It was not reachable with the default configuration, in which trusted_proxies is empty; the advisory reported no data exposure.

Key terms explained

KEYS

KEYS is a Redis command used to retrieve all key names that match a specific glob-style pattern. It is intended for debugging and special operations rather than regular application code.

Think of it this way. It is like searching for all files in a folder that start with a specific letter, such as looking for every document named 'Report_*'.