Giter Club home page Giter Club logo

cve-2018-10933's Introduction

Recreate & improve scenario of CVE-2018-10933

[Explaination]

 This is educational purpose for CVE-2018-10933, which is libSSH bypass authentication!
 libssh versions 0.6 and above have an authentication bypass vulnerability in the server code.
 By presenting the server an SSH2_MSG_USERAUTH_SUCCESS message in place of the SSH2_MSG_USERAUTH_REQUEST
 message which the server would expect to initiate authentication, the attacker could successfully authentciate
 without any credentials.

 The "patch" folder contains modified code in the server for testing purpose (which injects a SSH2_MSG_USERAUTH_SUCCESS packet during any authentication),
 because of this vulnerability has been patched since libSSH-0.7.5 version (complicated to regenerate environment suit with old version of libSSH)    

[Usage]

If you want to run this PoC on your machine, please follow instructions.

  • Clone the repos.

  • Adding library to your local machine

sudo cp CVE-2018-10933-PoC/libssh-0.8.3/src/* /usr/local/lib
  • Install Python dependencies
pip install -r requirements.txt
  • Starting the server (modified with patches):
cd libssh-0.8.3
./ssh_server -v [server_IP] -p [port] -d ssh_host_dsa_key -k ssh_host_rsa_key
  • Checking version of server:
python3 libSSHcheck.py -t [server_IP] -p [server_port]
  • Then you got the message which is the banner.

  • Execute the payload, then you got a shell:

python3 paramikoBypass.py -t [server_IP] -p [server_port] 

=> Succeed!

[Reference]

https://github.com/hackerhouse-opensource/
https://www.exploit-db.com/exploits/45638 

cve-2018-10933's People

Contributors

hsw109 avatar

Stargazers

DoTrongDat avatar DoBaoNhi avatar Thái Doãn Kiên avatar

Watchers

 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.