Git Product home page Git Product logo

Comments (8)

ellieayla avatar ellieayla commented on July 25, 2024 1

@OrkoHunter Please look into this.

from pep8speaks.

OrkoHunter avatar OrkoHunter commented on July 25, 2024

@alanjcastonguay I feel terrible overlooking this for so long. Apologies. Do you have any fix in mind? I'd be happy to implement it.

from pep8speaks.

ellieayla avatar ellieayla commented on July 25, 2024

I think the only reasonable approach is to strictly parse the configuration file and pass through whitelisted stuff only. I am uncertain what the full set of things that should be whitelisted are, though.

from pep8speaks.

OrkoHunter avatar OrkoHunter commented on July 25, 2024

@alanjcastonguay Does it make sense to allow only the alphabets and - & = in the key? Will RCE be possible in that case either?

from pep8speaks.

chinskiy avatar chinskiy commented on July 25, 2024

@OrkoHunter maybe one part of problem is here when you merging 2 dictionary. All default configurations 'keys' are here - is there any reason to add additional dictionary keys?

from pep8speaks.

sethmlarson avatar sethmlarson commented on July 25, 2024

Grabbing key and value and then putting them to a list args rather than using shell=True would work.

from pep8speaks.

ellieayla avatar ellieayla commented on July 25, 2024

Anything to avoid shell=True is a plus. That was critical to this exploit.

from pep8speaks.

OrkoHunter avatar OrkoHunter commented on July 25, 2024

I've added a check that the updated dictionary will only contain the keys defined (and expected).

from pep8speaks.

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.