Giter Club home page Giter Club logo

Comments (1)

c-mart avatar c-mart commented on July 23, 2024

This makes your Atmosphere server vulnerable to man-in-the-middle attacks. If you can corrupt my DNS or steal BGP routes upstream on the network (both of which are regularly used as attack vectors), then when I pull down code from version control to deploy a new release, you could point me to your evil git server and I'll get your evil code instead of my own, which I will then run as root, when I deploy with Clank.

I'm guessing host key checking was disabled so that the Atmosphere server can SSH to new instances (to run atmosphere-ansible) without knowing their host key ahead of time. If that is the case, here is a sketch of a better solution:

Each time an Atmosphere user launches an instance, we can generate a new SSH host keypair on the Atmosphere server. The public key would be added to the Atmosphere server's known_hosts file, and the keypair would be stored as instance metadata in OpenStack. We can pass a script as user_data to cloud-init which will retrieve the metadata and set the host keypair on the instance when it first boots. This way, the Atmosphere server will always have a reasonable assurance it is SSHing to the host that it intends to.

Bonus: we can display the instance's host key fingerprint to the user via the Troposphere UI and Atmosphere API, so that when a user SSHes to the instance and is prompted to accept the host key, he or she can also be reasonably assured that there is no man-in-the-middle attack.

@amercer1, @steve-gregory, et al., what do you think?

from clank.

Related Issues (20)

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.