Coder Social home page Coder Social logo

(security) Path Traversal about kedro HOT 2 CLOSED

merelcht avatar merelcht commented on June 2, 2024
(security) Path Traversal

from kedro.

Comments (2)

noklam avatar noklam commented on June 2, 2024 1

To supplement this. it's fair to say that it's the user's responsibility to make sure they use a trusted file for the logging. If the Kedro pipeline is exposed via API or embedded in application. We recommend not to expose KEDRO_LOGGING_CONFIG to any external input to avoid this potential vulnerability.

from kedro.

ankatiyar avatar ankatiyar commented on June 2, 2024

Summary

In discussion with @noklam and @merelcht -

The only way to silence the Snyk warning is to check the path provided by the env variable KEDRO_LOGGING_CONFIG is inside a "safe directory". This isn't very easy to solve since we don't know in advance where the user's logging.yml will be.
Even if we could assume that the logging config file is within the project(project_path) or in the conf_source but those values are accessible when a session is created which happens much later after the logging has been set up. Also, with the addition of the ability of specifying conf-source, the conf is not necessarily located in the project and/or could be a zip/tar file.

The decision then is to make no changes to address this but rely on the user to make sure that the path to the logging file is not arbitrary.

from kedro.

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.