Delivery-Date: Wed, 09 Mar 2016 03:21:02 -0500
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 1F6B81E0E01;
	Wed,  9 Mar 2016 03:21:01 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 5F02D396B1;
	Wed,  9 Mar 2016 08:20:56 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 8DC8339692
 for <tor-talk@lists.torproject.org>; Wed,  9 Mar 2016 08:20:53 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id EBl9sqk8rNFa for <tor-talk@lists.torproject.org>;
 Wed,  9 Mar 2016 08:20:53 +0000 (UTC)
Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com
 [IPv6:2a00:1450:400c:c09::22f])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id 3D9B8393CF
 for <tor-talk@lists.torproject.org>; Wed,  9 Mar 2016 08:20:53 +0000 (UTC)
Received: by mail-wm0-x22f.google.com with SMTP id l68so59880786wml.1
 for <tor-talk@lists.torproject.org>; Wed, 09 Mar 2016 00:20:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ahmia-fi.20150623.gappssmtp.com; s=20150623;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to;
 bh=+gSsFiuHZVh+YsZiOeRzq7Qc7qDQWFPzBkzzCMyr7eU=;
 b=dXV9fVAEVMvkF0+bHuMhFaxdqTEh5Jdk6q+1APrD1d4Ap+Hx4JCgHjKoTyOC/E9dcO
 Xbzm3wL8k9GXTcmJCG3JR68AbRlaxgYsScUmwMPdxNzXA3XMP7SgHPkfG+GA+JHMWJ7B
 gC8ZTJZRrqA/pSY4N4QKgTP3h5SvEPn/dj9puZuJtyf290b3PxC9dnhIpUmfh+3HJI4K
 c4K2H+JTOEYtsudeSI0zDxvG2zj2hcarHB807qX21FB2jr/sHjD8rz0BnnybE9yaZ4kg
 d38MIurJDiJqqf5iGWL8+CX70JL9FFoZe+nPGK1s8Jazo0uekKRz/v2XO5EZHtyAx+bd
 NO/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to;
 bh=+gSsFiuHZVh+YsZiOeRzq7Qc7qDQWFPzBkzzCMyr7eU=;
 b=Xhcd7ASkQ7I36CnZqmYT8iPt3/K64n/k9kdUkAK475kWfdTawg1h6qSZDp8TBKfNqO
 vEtarVYwPgPfioR9L0wa7Cl3at0k/kzFBWLWvLP1VgeOyRZ2tgiE10eG9C81e7lnsPHC
 9cXslVYFkqk0meM8ldkdtnAtAQ4K8CVHC2NjNxN5GppJgQLbu9Jm7xPT9svqFH8rLrJx
 AnV7a+m1GQ0gTvf7CixbG8TrNRjO6eWbMbGjlTmzpkXWjiY6hPZp35D6OptphuPep4Fq
 /lGs5qLOZIeRk3oz18Ee/KfCOszdpUjOAuUpKBwKkg+P+yrCeGx6XaABZ6wkI9KHFMAg
 Q90w==
X-Gm-Message-State: AD7BkJKSREHAr5Bt7nL/42E4d6HUMVj53rYd8tcugmHE6VBta+OyxDMXgg//EbGGUc+HKN3pjxKj+WVtz3XlOQ==
MIME-Version: 1.0
X-Received: by 10.28.172.194 with SMTP id v185mr23185992wme.21.1457511650386; 
 Wed, 09 Mar 2016 00:20:50 -0800 (PST)
Received: by 10.28.25.199 with HTTP; Wed, 9 Mar 2016 00:20:50 -0800 (PST)
X-Originating-IP: [130.230.147.45]
In-Reply-To: <CAJ8LpWqUDLr0VcQ3q-E1oeBW887Exbw_fXOdopq6Hhzy7=3MCA@mail.gmail.com>
References: <CAJ8LpWqUDLr0VcQ3q-E1oeBW887Exbw_fXOdopq6Hhzy7=3MCA@mail.gmail.com>
Date: Wed, 9 Mar 2016 10:20:50 +0200
Message-ID: <CAJ8LpWqitTCyrbHWmO3H8q5fRSjXE=RP1yuUqXMhONGTd+5UJQ@mail.gmail.com>
From: "Nurmi, Juha" <juha.nurmi@ahmia.fi>
To: Tor Talk <tor-talk@lists.torproject.org>
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: Re: [tor-talk] One way to protect onions against cloning attack
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

And the attacker immediately started to override CSS rules. I made a
counter attack again. See

REAL: http://msydqstlz2kzerdg.onion/
FAKE: http://msydqjihosw2fsu3.onion/

Let's see what is the next move from the attacker. He is probably reading
this mailing list.

-Juha


On Tue, Mar 8, 2016 at 2:50 PM, Nurmi, Juha <juha.nurmi@ahmia.fi> wrote:

> Hi,
>
> As you may have heard someone runs fake sites on a similar address to the
> original ones and tries to fool people with that. Fake sites are transparent
> proxies with MITM.
>
> I added this detection to ahmia.fi's onion site:
>
> REAL: http://msydqstlz2kzerdg.onion/
> FAKE: http://msydqjihosw2fsu3.onion/
>
> This is a CSS trick and works without JavaScript. CSS checks the address
> using regexp and if it is not correct it will activate warning text.
>
> @-moz-document
> regexp('(?!https?://ahmia\\.fi|https?://localhost|https?://127\\.0\\.0\\.1|
> http://msydqst.*2kzerdg\\.onion).*') {
>
> /* Alternative CSS content rules for fake site. */
>
> }
>
> It's not perfect solution but again we can make the attacker's life hard.
>
> Peace,
> Juha
>
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

