CloudTAK - браузерный Common Operating Picture и инструмент ситуационной осведомленности, совместимый с TAK. До версии 13.10.0 каждый маршрут в семействе помощников ESRI (api/routes/esri.ts) принимает полностью управляемый злоумышленником URL из запроса (POST /api/esri body url, и параметры запроса portal/server/layer на маршрутах GET /api/esri/*) и передает его в EsriBase / EsriProxyPortal / EsriProxyServer / EsriProxyLayer в api/lib/esri.ts, которые получают его с помощью голой выборки из tak-ps/etl. Классификация IP / DNS / hostname не применяется в любой точке, поэтому назначение никогда не проверяется на соответствие частным, обратным или локальным диапазонам.
Таким образом, любой аутентифицированный пользователь (маршруты требуют только Auth.is_auth(config, req, anyResources: true ), то есть любой токен, а не администратор) может сделать запрос CloudTAK сервера произвольным исходящим GET/POST-запросом на внутренние адреса, такие как облачная служба (169.254.169.254), порты администратора (127.0.0.1:<port>) и другие узлы, доступные только внутри развертывания VPC. Это полноценный SSRF, а не слепой: при успехе тело JSON возвращается вызывающему абоненту через res.json(...), а при сбое строка ошибок upstream отражается дословно как ESRI Server Error: <message>. Злоумышленник может читать метаданные облака (и временные учетные данные IAM, которые выставляет роль экземпляра), перечислять внутренние службы и выводить их тела отклика.
Классификатор snough() URL не обеспечивает никакой защиты: он только паттерн-соответствует имени пути (/rest, /arcgis/rest, /sharing/rest), так что URL как http://169.254.169.254/arcgis/rest или http://127.0.0.1:8500/rest передает snough() и доставляется. Эта проблема была исправлена в версии 13.10.0.
Показать оригинальное описание (EN)
CloudTAK is a browser-based Common Operating Picture and situational awareness tool compatible with TAK. Prior to version 13.10.0, every route in the ESRI helper family (api/routes/esri.ts) takes a fully attacker-controlled URL from the request (POST /api/esri body url, and the portal / server / layer query parameters on the GET /api/esri/* routes) and passes it into EsriBase / EsriProxyPortal / EsriProxyServer / EsriProxyLayer in api/lib/esri.ts, which fetch it with the bare fetch from @tak-ps/etl. No IP / DNS / hostname classification is applied at any point, so the destination is never validated against private, loopback, or link-local ranges. Any authenticated user (the routes only require Auth.is_auth(config, req, { anyResources: true }), i.e. any token, not an admin) can therefore make the CloudTAK server issue arbitrary outbound GET/POST requests to internal addresses such as the cloud instance-metadata service (169.254.169.254), loopback admin ports (127.0.0.1:<port>), and other hosts reachable only from inside the deployment VPC. This is a full-read SSRF, not blind: on success the upstream JSON body is returned to the caller via res.json(...), and on failure the upstream error string is reflected verbatim as ESRI Server Error: <message>. An attacker can read cloud metadata (and the temporary IAM credentials the instance role exposes), enumerate internal services, and exfiltrate their response bodies. The sniff() URL classifier provides no protection: it only pattern-matches the pathname (/rest, /arcgis/rest, /sharing/rest), so a URL like http://169.254.169.254/arcgis/rest or http://127.0.0.1:8500/rest passes sniff() and is fetched. This issue has been patched in version 13.10.0.
Характеристики атаки
Последствия
Строка CVSS v4.0