hackmdio/codimd

<iframe> tag cause open redirect

オープン

#959 opened on 2018/09/18

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,038 件のフォーク)batch import
Hacktoberfesthelp wantedsecurity

Repository metrics

Stars
 (8,949 個のスター)
PR merge metrics
 (PR metrics pending)

説明

If the source website has the script like this:

<script type="text/javascript">
if(window != top) {
    top.location.href = location.href;
}
</script>

It may cause a open redirect issue on codimd. I use www.plurk.com which has anti-clickjacking code to demo.

Demo Link in demo.codimd.org

<iframe src="https://www.plurk.com/k1tten_">

Broswer verison:

Safari 11.0.2: triggered
Firefox Quantum 62.0 : triggered
Chrome 68.0.3440.106: not triggered

コントリビューターガイド