Giter VIP home page Giter VIP logo

bluebycode / marshmallows Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 79.23 MB

Desplegados como nubes bajo infraestructuras visibles entre sí, y que permiten gestiones y comunicaciones seguras SSH entre dispositivos IoT que penden de ellos. Reforzados con mecanismos de seguridad ligeros y autenticación por doble factor 2FA o con claves físicas U2F.

License: MIT License

HTML 0.49% CSS 72.08% JavaScript 11.46% Ruby 3.55% Python 3.44% Go 8.93% Dockerfile 0.05%

marshmallows's Issues

Potential XSS due to an outdated 3rd party library

Bundler Audit reported an outdated library.

Name: rails-html-sanitizer
Version: 1.3.0
Advisory: CVE-2015-7580
Criticality: Unknown
URL: https://groups.google.com/forum/#!topic/rubyonrails-security/uh--W4TDwmI
Title: Possible XSS vulnerability in rails-html-sanitizer
Solution: upgrade to ~> 1.0.3

Frontend. Componentes de autenticación

  • Llamadas al servicio de autenticación desde el componente de React. Deberá ajustarse a los requisitos dados por el servicio de autenticación:
login(userDomain, callbackDone)
totpValidation(userDomain, totp, callbackDone)
toggleU2f
u2fenabled
  • @guillermijas Necesito feedback y especificación del flow de autenticación previo.

Broker (broker-agent). Create the Agents registration endpoint (Http)

  • Builds an endpoint as 192.168.43.100:8081/open/{deviceId} receiving:
    {T::token, D::agentPublicKey, I::deviceid}
  • Use authentication api 192.168.43.104:3000/auth/validate {T::token}
  • Token should be invalidated (auth api side)
  • We ought to store {D::agentPublicKey, I::deviceid} in order to make comparison when channel connection has been stablished.
  • Use Noise to protect the connection

Hardcoded server public/private keys

Server public/private keys are hardcoded in the code, found in the function generateServerKeys, file https://github.com/vrandkode/marshmallows/blob/master/common/noise.go:

pub, _ := base64.StdEncoding.DecodeString("J6TRfRXR5skWt6w5cFyaBxX8LPeIVxboZTLXTMhk4HM=")
priv, _ := base64.StdEncoding.DecodeString("vFilCT/FcyeShgbpTUrpru9n5yzZey8yfhsAx6DeL80=")

This default values should be in a configuration file or env variable instead. These values should be rotated now that are exposed.

https://github.com/vrandkode/marshmallows/blob/master/common/noise.go#L62

Hardcoded client public/private keys

Client public/private keys are hardcoded in the code, found in the function generateClientKeys, file https://github.com/vrandkode/marshmallows/blob/master/common/noise.go:

pub, _ := base64.StdEncoding.DecodeString("L9Xm5qy17ZZ6rBMd1Dsn5iZOyS7vUVhYK+zby1nJPEE=")
priv, _ := base64.StdEncoding.DecodeString("TPmwb3vTEgrA3oq6PoGEzH5hT91IDXGC9qEMc8ksRiw=")

This default values should be in a configuration file or env variable instead. These values should be rotated now that are exposed.

https://github.com/vrandkode/marshmallows/blob/master/common/noise.go#L49

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.