Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
salt-security-backports — Backports de segurança do Salt para CVE-2020-11651 e CVE-2020-11652 | Kitploit
Ferramentas/GitHubGitHub/rossengeorgiev/salt-security-backports
Segurança de Infraestrutura em NuvemAnálise de VulnerabilidadesExploraçãoAuditoria de ConfiguraçãoTestes de PenetraçãoArchived
GitHubrossengeorgiev/salt-security-backports

salt-security-backports

Backports de segurança do Salt para CVE-2020-11651 e CVE-2020-11652

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Ver RepositórioSite
1081510há 6 anosAinda não revisado
Compartilhar

Patches oficiais para versões anteriores podem ser solicitados em: https://www.saltstack.com/lp/request-patch-april-2020/

⚠ Patches aqui são personalizados e podem diferir dos oficiais ⚠

Patches de segurança retroportados para versões não suportadas do salt

Build Status

Os patches neste repositório abordam os seguintes CVEs:

  • CVE-2020-11651 & CVE-2020-11652 - https://labs.f-secure.com/advisories/saltstack-authorization-bypass

Além disso, incluem as seguintes correções de bugs:

  • correção de digitação _minion_runner -> minion_runner. Veja: https://docs.saltstack.com/en/latest/topics/releases/3000.2.html#known-issue
  • correção de tipo _find_file_and_stat -> _find_hash_and_stat. Veja
https://github.com/rossengeorgiev/salt-security-backports/issues/1
  • remoção de run_func da whitelist
  • falta import salt.utils.verify
  • As correções acima estão incluídas na versão mais recente do SaltStack, especificamente v2019.2.5 e v3000.3.

    Verifique se seu salt-master é vulnerável

    O script de verificação precisa ser executado localmente em seu salt-master como root

    root@kitploit:~
    python salt-cve-check.py
    

    Exemplo de saída para Salt 2017.7.8:

    root@kitploit:~
    [+] Salt version: 2017.7.8
    [ ] This version of salt is vulnerable! Check results below
    [+] Checking salt-master (127.0.0.1:4506) status... ONLINE
    [+] Checking if vulnerable to CVE-2020-11651... YES
    [+] Checking if vulnerable to CVE-2020-11652 (read_token)... YES
    [+] Checking if vulnerable to CVE-2020-11652 (read)... YES
    [+] Checking if vulnerable to CVE-2020-11652 (write1)... YES
    [+] Checking if vulnerable to CVE-2020-11652 (write2)... YES
    

    Aplicando os patches

    root@kitploit:~
    # locate the salt package directory (use python3 if necessary)
    
    python -c "import imp; print(imp.find_module('salt')[1])"
    
    # in my case: /usr/lib/python2.7/dist-packages/salt
    # apply patches
    # (adding -b flag will backup file before modifications at same path with .orig suffix)
    # (patch can be reversed running the same command with -R flag)
    
    patch -p2 -d /usr/lib/python2.7/dist-packages/salt < 2017.7.8_CVE-2020-11651.patch
    patch -p2 -d /usr/lib/python2.7/dist-packages/salt < 2017.7.8_CVE-2020-11652.patch
    
    # restart salt-master
    
    systemctl restart salt-master
    # or
    service salt-master restart
    

    Execute novamente o script de verificação:

    root@kitploit:~
    user@salt # python salt-cve-check.py
    [+] Salt version: 2017.7.8
    [ ] This version of salt is vulnerable! Check results below
    [+] Checking salt-master (127.0.0.1:4506) status... ONLINE
    [+] Checking if vulnerable to CVE-2020-11651... NO
    [+] Checking if vulnerable to CVE-2020-11652 (read_token)... NO
    [+] Checking if vulnerable to CVE-2020-11652 (read)... NO
    [+] Checking if vulnerable to CVE-2020-11652 (write1)... NO
    [+] Checking if vulnerable to CVE-2020-11652 (write2)... NO
    
    Baixar ferramenta