Palo Alto Software · Report #1294492
DNS Miconfiguration Leads to Subdomain Takeover - max1.liveplan.com
Validstatus
highseverity
10upvotes
8 Sept 2021disclosed
How it was found
Summary
The issue happens due to using EC2 public DNS instead of using Elastic IPs as CNAME record. This report is simliar to report #1069795
Misconfiguration
- DNS Records
{
"host": "max1.liveplan.com",
"resolver": [
"1.0.0.1:53"
],
"a": [
"54.68.121.128"
],
"cname": [
"ec2-54-68-121-128.us-west-2.compute.amazonaws.com"
],
"status_code": "NOERROR",
"timestamp": "2021-08-07T13:41:48.3522806+02:00"
}
- If the EC2 instance is killed or terminated and the DNS was not updated this will lead to creating a dangling DNS record for the subdomain.
- The EC2 IP will be released to AWS IPs pool, This mean it's possible to assign the IP to new EC2 instance.
PoC
- SSL Certificate Data pulled from
https://max1.liveplan.comon date7/8/2021 - 1:40PM. - Data was pulled using SSLEnum
{
"name": "max1.liveplan.com",
"org": [],
"cn": [
"*.test.tugo.com"
],
"alt_doms": [
"*.test.tugo.com",
"*.dev.tugo.com",
"*.uat.tugo.com"
],
"dangling": true
}
- This does prove that
max1.liveplan.comis currently taken over by someone.
{F1403387}
Fix
- Use Elastic IPs instead of the public DNS of EC2 instance or clear DNS records for mentioned subdomain
Supporting Material/References:
Impact
- This could allow the takeover of the EC2 instance IP that will lead to subdomain takeover.