apachecn / apachecn/apachecn.github.io

Subdomain takeover on *.apachecn.org

Ouverte
#1 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
HTML
Étoiles
1
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par examiner la configuration CNAME wildcard décrite dans l’issue ainsi que la preuve de concept liée sur what-i-want.apachecn.org. Confirmez si apachecn.org redirige toujours les sous-domaines arbitraires vers apachecn.github.io ; le travail est considéré comme terminé lorsque l’enregistrement CNAME wildcard est supprimé et que le sous-domaine de la preuve de concept ne sert plus de contenu contrôlé par un attaquant.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github
Domaine
infrastructure, security
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.