2023-08-01 22:14:59 +00:00
id : elasticbeanstalk-takeover
info :
name : ElasticBeanstalk Subdomain Takeover Detection
2023-09-27 11:54:47 +00:00
author : philippedelteil,rotemreiss,zy9ard3,joaonevess
2023-08-01 22:14:59 +00:00
severity : high
2023-10-14 11:27:55 +00:00
description : ElasticBeanstalk subdomain takeover detected. A subdomain takeover occurs when an attacker gains control over a subdomain of a target domain. Typically, this happens when the subdomain has a canonical name (CNAME) in the Domain Name System (DNS), but no host is providing content for it.
2023-08-01 22:14:59 +00:00
reference :
- https://github.com/EdOverflow/can-i-take-over-xyz/issues/147
- https://twitter.com/payloadartist/status/1362035009863880711
- https://www.youtube.com/watch?v=srKIqhj_ki8
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score : 7.2
cwe-id : CWE-404
metadata :
max-request : 1
comments : |
Only CNAMEs with region specification are hijackable.
You need to claim the CNAME in AWS portal (https://aws.amazon.com/) or via AWS CLI to confirm the takeover.
Do not report this without claiming the CNAME.
CLI command to verify the availability of the environment :
aws elasticbeanstalk check-dns-availability --region {AWS_REGION} --cname-prefix {CNAME_PREFIX}
For example :
CNAME - 2rs3c.eu-west-1.elasticbeanstalk.com
Command - aws elasticbeanstalk check-dns-availability --region eu-west-1 --cname-prefix 2rs3c
2023-12-12 23:25:50 +00:00
tags : dns,takeover,aws,elasticbeanstalk
2023-08-01 22:14:59 +00:00
dns :
- name : "{{FQDN}}"
type : A
matchers-condition : and
matchers :
- type : regex
regex :
2023-10-11 12:58:13 +00:00
- CNAME\t[a-z0-9_-]*\.(us|af|ap|ca|eu|me|sa|il)\-(north|east|west|south|northeast|southeast|central)\-[1-9]+\.elasticbeanstalk\.com
2023-08-01 22:14:59 +00:00
- type : word
words :
2023-09-22 10:33:37 +00:00
- NXDOMAIN
2023-08-01 22:14:59 +00:00
extractors :
2023-09-29 15:10:50 +00:00
- type : dsl
dsl :
- cname
2024-01-04 06:57:22 +00:00
# digest: 4a0a00473045022050760ee5a49ba66950d709ad082c96f1f8cf59151573984107709cf7d108288b022100dddbce009750e8fb8c2018ff0937efe3be734a09791f0eb5715ea73b2593b0e2:922c64590222798bb761d5b6d8e72950