DNS Miconfiguration Leads to Subdomain Takeover - max1.liveplan.com
High
P
Palo Alto Software
Submitted None
Actions:
Reported by
melbadry9
Vulnerability Details
Technical details and impact analysis
## 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
```json
{
"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.com` on date `7/8/2021 - 1:40PM`.
- Data was pulled using [SSLEnum](https://github.com/melbadry9/SSLEnum)
```json
{
"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.com` is 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:
- https://blog.melbadry9.xyz/dangling-dns/aws/ddns-ec2-current-state
## Impact
- This could allow the takeover of the EC2 instance IP that will lead to subdomain takeover.
Report Details
Additional information and metadata
State
Closed
Substate
Resolved
Submitted
Weakness
Privilege Escalation