Git Product home page Git Product logo

madwas's Introduction

Hi ๐Ÿ‘‹ I'm Oliver Drechsler

DevOps Engineer, Cloud Architect, Trail-Runner, Marathon Runner, Triathlate and Dad

  • ๐ŸŒฑ Iโ€™m currently developing and learning ... AppleScript, Groovy, Go , Python, Java, Spring and some more ...

  • ๐Ÿ’ฌ Ask me about ...
    VDR, Raspberry Pi, Programming Languages, Linux, .....

  • ๐Ÿ“ซ Connect with me:: ...

Twitter Linkedin XING Stackoverflow
๐Ÿ“š Imprint and GDPDR / Impressum und DSGVO

IMPRESSUM

DSGVO

madwas's People

Contributors

dependabot[bot] avatar oliverdrechsler avatar pyup-bot avatar

Watchers

 avatar

Forkers

absnoobalo

madwas's Issues

harden logging load of log_config.yaml because of possible arbitrary code execution

pyyaml is a YAML parser and emitter for Python.
Affected versions of this package are vulnerable to Arbitrary Code Execution. It processes untrusted YAML files through the full_load method or with the FullLoader loader. This is due to an incomplete fix for CVE-2020-1747
Remediation
There is no fixed version for pyyaml.

Configuring loggers is security-sensitive. It has led in the past to the following vulnerabilities:
CVE-2018-0285
CVE-2000-1127
CVE-2017-15113
CVE-2015-5742
Sensitive Code Example

import logging
from logging import Logger, Handler, Filter
from logging.config import fileConfig, dictConfig

logging.basicConfig()  # Sensitive
logging.disable()  # Sensitive


def update_logging(logger_class):
    logging.setLoggerClass(logger_class)  # Sensitive


def set_last_resort(last_resort):
    logging.lastResort = last_resort  # Sensitive


class CustomLogger(Logger):  # Sensitive
    pass


class CustomHandler(Handler):  # Sensitive
    pass


class CustomFilter(Filter):  # Sensitive
    pass


def update_config(path, config):
    fileConfig(path)  # Sensitive
    dictConfig(config)  # Sensitive

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.