mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 07:02:16 +03:00
The kiro / amazon-q device-code action interpolated a caller-supplied `region` into the AWS OIDC endpoint URLs that requestDeviceCode() fetches, with no validation — an attacker-shaped region (userinfo/fragment) could re-point the outbound host to an internal target or the cloud-metadata service. `region` is now checked against the canonical AWS region shape (AWS_REGION_PATTERN, already used by pollToken) and rejected with a 400 before any outbound fetch. Reported by @daniel-mertz via GHSA-7x63-xvp5-w2jc.