apachecn / apachecn/apachecn.github.io
Subdomain takeover on *.apachecn.org
- 主要言語
- HTML
- スター
- 1
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## 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/).

## 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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、issue に記載されているワイルドカード CNAME 設定と、what-i-want.apachecn.org にリンクされている proof of concept を確認します。apachecn.org が現在も任意のサブドメインを apachecn.github.io にルーティングしているか確認してください。ワイルドカード CNAME レコードが削除され、proof-of-concept サブドメインが攻撃者に制御されたコンテンツを提供しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github
- 領域
- infrastructure, security
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100