hackmdio/codimd

<iframe> tag cause open redirect

Ouverte

#959 ouverte le 18 sept. 2018

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 038 forks)batch import
Hacktoberfesthelp wantedsecurity

Métriques du dépôt

Stars
 (8 949 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur