apachecn / apachecn/apachecn.github.io

Subdomain takeover on *.apachecn.org

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Summary

The domain **apachecn.org.io** has a subdomain wildcard CNAME record pointing to **apachecn.github.io**. This allows an attacker to use any subdomain he wants on apachecn.org with Github pages.

## Security issue

An attacker could create it's own repository and configure it to use any subdomain he wants, allowing him to serve it's own content.

## POC

I have made [a POC](http://what-i-want.apachecn.org/).

![image](https://user-images.githubusercontent.com/23080994/72226149-2a540900-358e-11ea-81fc-6f8279617e44.png)

## Remediation

Remove the wildcard CNAME record for apachecn.org.

## Impact

This issue make it possible for an attacker to carry out several type of attacks like XSS, phishing campaign or session hijacking.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.