PT-2023-19310 · Microsoft · Azure/Setup-Kubectl
Olivermking
·
Publicado
2023-03-06
·
Atualizado
2023-03-13
·
CVE-2023-23939
CVSS v3.1
3.9
Baixa
| Vetor | AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
Azure/setup-kubectl versions prior to 3
Description
The issue arises from an insecure temporary creation of a file, allowing other actors on the Actions runner to replace the Kubectl binary created by this action because it is world writable. This Kubectl tool installer runs
fs.chmodSync(kubectlPath, 777) to set permissions on the Kubectl binary, allowing any local user to replace the Kubectl binary. This enables privilege escalation to the user that can also run kubectl, most likely root. The attack is only possible if an attacker breaches the GitHub actions runner or if a user utilizes an Action that maliciously executes this attack. No impacted customers have been reported.Recommendations
For versions prior to 3, upgrade to version 3 or later, which uses 775 permissions instead. If users cannot upgrade to version 3 or higher, they should be extra diligent about the other GitHub actions they are using in a workflow and ensure that their GitHub actions runner is secure.
Exploit
Correção
Incorrect Permission
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Azure/Setup-Kubectl