Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Marriage is the only adventure open to the cowardly. -- Voltaire


devel / comp.lang.javascript / Re: Mystery (DOM change when JavaScript is disabled)

SubjectAuthor
* Mystery (DOM change when JavaScript is disabled)Stefan Ram
+- Re: Mystery (DOM change when JavaScript is disabled)Andrew Poulos
+- Re: Mystery (DOM change when JavaScript is disabled)Maik Koenig
+- Re: Mystery (DOM change when JavaScript is disabled)Jon Ribbens
`- Re: Mystery (DOM change when JavaScript is disabled)JJ

1
Mystery (DOM change when JavaScript is disabled)

<mystery-20210920233407@ram.dialup.fu-berlin.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9903&group=comp.lang.javascript#9903

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.javascript
Subject: Mystery (DOM change when JavaScript is disabled)
Date: 20 Sep 2021 22:51:05 GMT
Organization: Stefan Ram
Lines: 42
Expires: 1 Dec 2021 11:59:58 GMT
Message-ID: <mystery-20210920233407@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 3n2reg7zbUn7Q9KivvBgWwxcW/HwIt+vRNu4UKHrQDn58o
X-Copyright: (C) Copyright 2021 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Mon, 20 Sep 2021 22:51 UTC

A web page has a link that is shown (in the status bar when
the mouse is positioned over it) as, e.g.,

http://www.example.com/

. When one clicks on it (even with the /right/ mouse bottom),
it is being changed into something like

http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F

. I have looked at the DOM before the click and then again after
the click and it seems that the DOM is being changed from

.... href="http://www.example.com/" ...

into

.... href="http://www.badcompany.com/redirect?uri=http%3A%2F...

. Ok, this is annoying. I assumed that the click is being intercepted
with JavaScript and then the href attribute is changed.

To get rid of the nasty "clickjacking", I disabled JavaScript before
I clicked on the link with the right mouse button to "copy" the URI).
What bewildered me: The link is still changed /with Java-Script/
disabled! How is this possible?

I tried the same thing with a different browser and still see the
same behavior.

Is it possible that after a page has been loaded and some scripts
already have been executed, disabling JavaScript might not
immediately disable running any JavaScript from that moment on?
Is it possible that some JavaScript statements still can be executed?

I have no idea how else it can be possible that the link is
being changed when JavaScript is disabled.

Or is there any HTML feature that would allow to have such a
change of the DOM happen without JavaScript? TIA!

Re: Mystery (DOM change when JavaScript is disabled)

<IIidnTWlhOIMi9T8nZ2dnUU7-R_NnZ2d@westnet.com.au>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9904&group=comp.lang.javascript#9904

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 20 Sep 2021 18:17:37 -0500
Subject: Re: Mystery (DOM change when JavaScript is disabled)
Newsgroups: comp.lang.javascript
References: <mystery-20210920233407@ram.dialup.fu-berlin.de>
From: ap_p...@hotmail.com (Andrew Poulos)
Date: Tue, 21 Sep 2021 09:17:35 +1000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <mystery-20210920233407@ram.dialup.fu-berlin.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-AU
Content-Transfer-Encoding: 7bit
Message-ID: <IIidnTWlhOIMi9T8nZ2dnUU7-R_NnZ2d@westnet.com.au>
Lines: 45
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 203.219.129.187
X-Trace: sv3-4ovOy/cBP/2QBBjB/DNGcy+ftIgoFwCkF2gbZmOMmkn/z81W3Sy8l0qbAs4+K31VwXN5fprDJQHvu9f!wT5iJwLUE4+1ZJBOTZluuGsqNz30XH9AVvWnYcq6CARPg9vtFV4ktmMEG4VMkxynJay2bFOTeVty!ofgCebGlXR57DWbUQTSLpg0=
X-Complaints-To: abuse@westnet.com.au
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3048
 by: Andrew Poulos - Mon, 20 Sep 2021 23:17 UTC

On 21/09/2021 8:51 am, Stefan Ram wrote:
> A web page has a link that is shown (in the status bar when
> the mouse is positioned over it) as, e.g.,
>
> http://www.example.com/
>
> . When one clicks on it (even with the /right/ mouse bottom),
> it is being changed into something like
>
> http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F
>
> . I have looked at the DOM before the click and then again after
> the click and it seems that the DOM is being changed from
>
> ... href="http://www.example.com/" ...
>
> into
>
> ... href="http://www.badcompany.com/redirect?uri=http%3A%2F...
>
> . Ok, this is annoying. I assumed that the click is being intercepted
> with JavaScript and then the href attribute is changed.
>
> To get rid of the nasty "clickjacking", I disabled JavaScript before
> I clicked on the link with the right mouse button to "copy" the URI).
> What bewildered me: The link is still changed /with Java-Script/
> disabled! How is this possible?
>
> I tried the same thing with a different browser and still see the
> same behaviour.
>
> Is it possible that after a page has been loaded and some scripts
> already have been executed, disabling JavaScript might not
> immediately disable running any JavaScript from that moment on?
> Is it possible that some JavaScript statements still can be executed?
>
> I have no idea how else it can be possible that the link is
> being changed when JavaScript is disabled.
>
> Or is there any HTML feature that would allow to have such a
> change of the DOM happen without JavaScript? TIA!

They could be using CSS to hide one link, on hover, and show another?

Andrew Poulos

Re: Mystery (DOM change when JavaScript is disabled)

<sibgkc.4h8.1@mid.maikkoenig.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9905&group=comp.lang.javascript#9905

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenets...@maikkoenig.de (Maik Koenig)
Newsgroups: comp.lang.javascript
Subject: Re: Mystery (DOM change when JavaScript is disabled)
Date: Tue, 21 Sep 2021 02:39:08 +0200
Lines: 20
Message-ID: <sibgkc.4h8.1@mid.maikkoenig.de>
References: <mystery-20210920233407@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WtxRlOKi7/wUzEDjokVKGwfu3zxjQa47ZCuD10o1Na8YeI5c0p
Cancel-Lock: sha1:3MET15H9aBMY8XaYqrzMBh9fA9M=
User-Agent: manchmal mit, manchmal ohne Hamster/2.1.0.1538
In-Reply-To: <mystery-20210920233407@ram.dialup.fu-berlin.de>
 by: Maik Koenig - Tue, 21 Sep 2021 00:39 UTC

Am 21.09.2021 um 00:51 schrieb Stefan Ram:
> A web page has a link that is shown (in the status bar when
> the mouse is positioned over it) as, e.g.,
>
> http://www.example.com/
>
> . When one clicks on it (even with the /right/ mouse bottom),
> it is being changed into something like
>
> http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F
>

How about giving the url so we can look?

Greetz,
MK
--
Kopp-Verlag-Gläubige, Religionsdeppen, rechte Vollidioten
und ähnlicher Bio-Abfall werden ohne Hinweis ignoriert!
Ich lese die Gruppen in denen ich schreibe: KEINE Mailkopie.

Re: Mystery (DOM change when JavaScript is disabled)

<slrnskjfe5.4gd.jon+usenet@raven.unequivocal.eu>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9906&group=comp.lang.javascript#9906

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jon+use...@unequivocal.eu (Jon Ribbens)
Newsgroups: comp.lang.javascript
Subject: Re: Mystery (DOM change when JavaScript is disabled)
Date: Tue, 21 Sep 2021 11:11:01 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <slrnskjfe5.4gd.jon+usenet@raven.unequivocal.eu>
References: <mystery-20210920233407@ram.dialup.fu-berlin.de>
Injection-Date: Tue, 21 Sep 2021 11:11:01 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="97ed41b2128d0d77623682414e7b1a7c";
logging-data="8500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19l7bepQ6QhuNadC6CxJj+KbsMivHt7u94="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:1BORXNlR9NypjsmmUSVCB2XlQ70=
 by: Jon Ribbens - Tue, 21 Sep 2021 11:11 UTC

On 2021-09-20, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
> Is it possible that after a page has been loaded and some scripts
> already have been executed, disabling JavaScript might not
> immediately disable running any JavaScript from that moment on?
> Is it possible that some JavaScript statements still can be executed?

I think I would go with "if JavaScript was enabled when you loaded the
page, then disabling it does nothing until you reload the page".

Re: Mystery (DOM change when JavaScript is disabled)

<p169ier6e7dc.i5twjkrhg5d1.dlg@40tude.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9907&group=comp.lang.javascript#9907

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!lQppYl/ziCj3MHUuPZ0e/g.user.46.165.242.91.POSTED!not-for-mail
From: jj4pub...@gmail.com (JJ)
Newsgroups: comp.lang.javascript
Subject: Re: Mystery (DOM change when JavaScript is disabled)
Date: Wed, 22 Sep 2021 02:35:40 +0700
Organization: Aioe.org NNTP Server
Message-ID: <p169ier6e7dc.i5twjkrhg5d1.dlg@40tude.net>
References: <mystery-20210920233407@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="64018"; posting-host="lQppYl/ziCj3MHUuPZ0e/g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.84
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Notice: Filtered by postfilter v. 0.9.2
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Tue, 21 Sep 2021 19:35 UTC

On 20 Sep 2021 22:51:05 GMT, Stefan Ram wrote:
> A web page has a link that is shown (in the status bar when
> the mouse is positioned over it) as, e.g.,
>
> http://www.example.com/
>
> . When one clicks on it (even with the /right/ mouse bottom),
> it is being changed into something like
>
> http://www.badcompany.com/redirect?uri=http%3A%2F%2Fwww.example.com%2F
>
> . I have looked at the DOM before the click and then again after
> the click and it seems that the DOM is being changed from
>
> .... href="http://www.example.com/" ...
>
> into
>
> .... href="http://www.badcompany.com/redirect?uri=http%3A%2F...
>
> . Ok, this is annoying. I assumed that the click is being intercepted
> with JavaScript and then the href attribute is changed.
>
> To get rid of the nasty "clickjacking", I disabled JavaScript before
> I clicked on the link with the right mouse button to "copy" the URI).
> What bewildered me: The link is still changed /with Java-Script/
> disabled! How is this possible?
>
> I tried the same thing with a different browser and still see the
> same behavior.
>
> Is it possible that after a page has been loaded and some scripts
> already have been executed, disabling JavaScript might not
> immediately disable running any JavaScript from that moment on?
> Is it possible that some JavaScript statements still can be executed?
>
> I have no idea how else it can be possible that the link is
> being changed when JavaScript is disabled.
>
> Or is there any HTML feature that would allow to have such a
> change of the DOM happen without JavaScript? TIA!

I suspect that the JavaScript is not entirely disabled/blocked. If it was
disabled/blocked using a browser addon, some addons can only do it by
blocking external JavaScript resource network requests but can not disable
enbedded/inline JavaScript.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor