Skip to content

False positive Route53 record is a dangling IP which can lead to a subdomain takeover attack #9541

@kanton10062006

Description

@kanton10062006

Issue search

  • I have searched the existing issues and this bug has not been reported yet

Which component is affected?

Prowler CLI/SDK

Cloud Provider (if applicable)

AWS

Steps to Reproduce

  1. Create an EC2 instance in a public subnet in us-west-1 while having Route53 hosted zone in us-east-1
  2. Assign an Elastic IP address to this instance
  3. Run prowler

Expected behavior

Prowler checks if the assigned IP address is in the pool of Elastic IPS across all available regions

Actual Result with Screenshots or Logs

Image

While we have this IP address in the ElasticIP pool associated with EC2:

Image

How did you install Prowler?

Cloning the repository from github.com (git clone)

Environment Resource

  1. EC2
  2. Route53

OS used

Amazon Linux 2023

Prowler version

5.14.2

Python version

3.11

Pip version

24.0

Context

My thoughts, it's because Route53 is a global AWS service and its region is us-east-1, where the finding originally appeared. ElasticIP associated with EC2 is placed in a different AWS region - us-west-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugseverity/lowBug won't result in any noticeable breakdown of the execution.status/waiting-for-revisionWaiting for maintainer's revision

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions