Giter Club home page Giter Club logo

reality_smasher's Introduction

REALITY_SMASHER

vRealize RCE + Privesc (CVE-2021-21975, CVE-2021-21983, CVE-0DAY-?????)

"As easy to stop as it is to comprehend."

What is it?

"Reality Smasher" is an exploit for vRealize leveraging the security issues addressed in VMSA-2021-0004 (CVE-2021-21975, CVE-2021-21983) in addition to a privilege escalation vulnerability discovered during testing.

How does it work?

"Reality Smasher" exploits CVE-2021-21975 to steal credentials for vRealize's "maintenanceAdmin" account. This is achieved by hosting an HTTPS listener using the key and certificate included in this repository. These credentials are used in all subsequent authenticated requests. First, the admin account's hashed passwords are requested and stored for later use.

Next, a request is made to enable the SSH service. This is followed by an overwrite of the "admin.properties" file using CVE-2021-21983. A request to set the admin user's initial password is made next. This is allowed because admin's credentials were stored in "admin.properties". Without this file, vRealize believes that credentials had never been set and accepts the unauthenticated "/security/adminpassword/initial" request.

After validating that the new admin credentials allow for SSH access, ssh keys are generated. The privilege escalation vulnerability is then used to permit root SSH login, restart the sshd service, and append the public key to "/root/.ssh/authorized_keys." After root SSH access has been validated, the original hashed passwords are restored, and the user is granted an interactive SSH shell as the root user. All SSH operations are performed using "golang.org/x/crypto/ssh".

Is it safe?

Significant effort was made to ensure the reliability and robustness of this exploit. However, this is my first golang project, so use this exploit at your own risk. It is recommended to run this exploit with verbosity to capture hashed passwords and the generated private key.

Demo

REALITY_SMASHER

reality_smasher's People

Contributors

rabidwh0re 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.