Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lambda privilege escalation method #21

Open
andresriancho opened this issue Sep 17, 2018 · 0 comments
Open

New lambda privilege escalation method #21

andresriancho opened this issue Sep 17, 2018 · 0 comments

Comments

@andresriancho
Copy link

andresriancho commented Sep 17, 2018

@SpenGietz I've read https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/ and also the different escalation methods listed in aws-pentest-tools/aws_escalate.py.

IMHO in the blog post, 13. Updating the code of an existing Lambda function could allow admin privilege escalation only if the function does run as admin, because lambda:UpdateFunctionCode does not allow you to change the role with which the function runs. This means that maybe you want to remove that from the script, or make the output look differently? For example: Partial privilege escalation?

On the other side, neither the blog post or code references lambda:UpdateFunctionConfiguration which does allow you to set the role with which the function will run as.

What do you think about adding these to escalation_methods:

        'UpdateExistingLambdaFunctionConfigurationWithRole': {
            'lambda:UpdateFunctionConfiguration': True,
            'lambda:InvokeFunction': True
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant