Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob pattern
영향
| 패키지 | 영향받는 버전 | 수정 버전 |
|---|---|---|
| pip:guard-core | >= 1.0.0, < 3.13.0 | 3.13.0 |
_extract_from_forwarded_header() (guard_core/utils.py:172-181 in 3.12.0; :179 on master 08780f1) returns the selected X-Forwarded-For entry without any ipaddress validation. When that entry is attacker-controlled, an arbitrary string becomes client_ip and flows into BehaviorTracker (guard_core/handlers/behavior_handler.py:83-102), which interpolates it verbatim into both a Redis key name and a KEYS glob pattern: python key = f"behavior:usage:{endpoint_id}:{client_ip}" await self.redis_handler.s…
2026. 11. 20. 오전 07:50, GitHub Advisory Database에서 "Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob pattern"을(를) 게시했습니다 (유형: 취약점 권고). 심각도는 "보통"(medium)입니다. 관련 기술: Python, Redis / Valkey. CVE: CVE-2026-129304.