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

EC2 IAM roles vulnerable to SSRF attacks #1892

Closed
tolgaOzen opened this issue Jan 8, 2025 — with Aikido Issues · 0 comments
Closed

EC2 IAM roles vulnerable to SSRF attacks #1892

tolgaOzen opened this issue Jan 8, 2025 — with Aikido Issues · 0 comments
Labels

Comments

Copy link
Member

Find more live information in Aikido here: https://app.aikido.dev/queue?sidebarIssue=4763105&groupId=6798&sidebarIssueTask=191028&sidebarTab=tasks

==== Scope ====
This task includes issues in the following cloud:

  • permify

==== TLDR ====
IMDS is an internal AWS service used by EC2 instances to fetch their IAM roles. EC2 Instances should have Metadata Service version 2 (IMDSv2) enabled and required. Using IMDSv2 will protect from misconfiguration and SSRF vulnerabilities. IMDSv1 will not.

==== How to fix ====
Upgrading to Amazon Linux 2023 will automatically remediate this issue as it uses IMDSv2 by default. If you cannot upgrade, use the following code to enable stronger authentication:
aws ec2 modify-instance-metadata-options --instance-id i-1234567898ab --http-tokens required --http-endpoint enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant