-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Milestone
Description
Description
The LocationOffset.unmarshalHelper function recursively unmarshals reference chains without any depth limit. An attacker can craft a malicious UDP packet with NumReferences=255 pointing to deeply nested or circular reference structures, causing stack exhaustion and crashing the service.
Location
controlplane/telemetry/internal/geoprobe/offset.go:110-115
Impact
Denial of Service (DoS) - can crash the telemetry service by sending specially crafted UDP packets
Recommendation
- Add a maximum depth constant (e.g.,
MaxReferenceDepth = 10) - Pass a depth counter through the recursive unmarshalHelper calls
- Return an error when depth is exceeded
- Validate that NumReferences matches the actual length of References after unmarshaling
References
From security review findings in docs/reviews-2901.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels