Code Monkey home page Code Monkey logo

Comments (3)

sopelt avatar sopelt commented on May 4, 2024

It would also be nice to clarify why "run as administrator" is required.

from aad-app-credential-tools.

vikramden avatar vikramden commented on May 4, 2024

Ack the request, we didn't want to impose the PS7 as the requirement to mitigate as most of the customers are on PS5. We will provide the PS7 version on Monday to support across OS flavors.

from aad-app-credential-tools.

brettmillerb avatar brettmillerb commented on May 4, 2024

It appears the only thing that is not possible x-plat is the two lines here:

https://github.com/microsoft/aad-app-credential-tools/blob/main/azure-automation/CVE-2021-42306-AutomationAssessAndMitigate.ps1#L469-L470

  • Export-PfxCertificate is part of the PKI module which is only available on Windows
  • [System.Web.Security.Membership]::GeneratePassword() is also Windows only

Password creation is simple enough to replace with another function e.g
https://gist.github.com/indented-automation/2093bd088d59b362ec2a5b81a14ba84e#file-new-password-ps1

Would generating a certificate in a key vault be a sensible option but then there's a requirement to have a pre-existing key vault or create one to utilise.

Might be worth adding that if you comment out the two #Requires statements you can check the resources but not remediate them 🎉

#Requires -PSEdition Desktop
#Requires -RunAsAdministrator

from aad-app-credential-tools.

Related Issues (7)

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.