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 上連結的概念驗證。確認 apachecn.org 是否仍將任意子網域路由至 apachecn.github.io;當萬用字元 CNAME 記錄被移除,且概念驗證子網域不再提供由攻擊者控制的內容時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github
- 領域
- infrastructure, security
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100