Snowflake CLI-де stage execute жолын сәйкестендіру ақауы арқылы код орындау
Snowflake CLI
Қысқаша
Snowflake CLI және Snowflake CLI Labs каталог жолы соңында қиғаш сызықсыз берілгенде, stage каталогының көрші орындарынан файлдарды іске қоса алады. Желіге төмен артықшылықты қол жеткізе алатын шабуылдаушы, жәбірленуші сол жолға қарсы `snow stage execute` немесе `snow git execute` пәрменін орындағанда, осы осалдықты пайдалана алады. Содан кейін шабуылдаушының SQL немесе Python файлдары жәбірленушінің Snowflake сессиясында және белсенді рөлінде орындалады, сондықтан залал сол рөлдің артықшылықтарымен шектеледі.
Түйіндемені дереккөздер негізінде ЖИ жасаған және ол автоматты түрде аударылған.
Түзету
Түзетілген нұсқалар: 3.33.0
Зардап шегетін нұсқалар
| Snowflake CLI | → түзетілді 3.33.0 |
| Snowflake CLI Labs | → түзетілді 3.33.0 |
Түпнұсқа сипаттама (EN)
Түпнұсқа тақырып: Snowflake CLI code execution via path matching flaw in stage execute
Improper path matching in Snowflake CLI & Snowflake CLI labs versions prior to 3.33.0 caused the snow stage execute and snow git execute commands to select files by raw string prefix rather than by directory boundary. When a directory path was given without a trailing slash, files in sibling locations whose names began with the same characters were also selected and executed. An attacker who can write files to a sibling location of a stage directory that a victim executes can cause Snowflake CLI & Snowflake CLI labs to execute attacker-controlled SQL or Python files in the context of the victim's Snowflake session and active role. Successful exploitation requires write access to a stage, or to the cloud storage location backing an external stage, that is shared with a more privileged user or automation, and requires the victim to run snow stage execute or snow git execute against a directory path in that stage. Impact is limited by the privileges held by the configured Snowflake role at execution time. The fix is available in Snowflake CLI & Snowflake CLI labs version 3.33.0, which also addresses several additional security findings. Users must manually upgrade.