Delivery-Date: Tue, 08 Mar 2016 07:50:44 -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 0C4291E02AA;
	Tue,  8 Mar 2016 07:50:43 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 5EC7F344BE;
	Tue,  8 Mar 2016 12:50:38 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 601B533ABB
 for <tor-talk@lists.torproject.org>; Tue,  8 Mar 2016 12:50:35 +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 t4S7E6lsuwuF for <tor-talk@lists.torproject.org>;
 Tue,  8 Mar 2016 12:50:35 +0000 (UTC)
Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com
 [IPv6:2a00:1450:400c:c09::231])
 (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 0FBB23067C
 for <tor-talk@lists.torproject.org>; Tue,  8 Mar 2016 12:50:35 +0000 (UTC)
Received: by mail-wm0-x231.google.com with SMTP id l68so148458647wml.0
 for <tor-talk@lists.torproject.org>; Tue, 08 Mar 2016 04:50:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ahmia-fi.20150623.gappssmtp.com; s=20150623;
 h=mime-version:date:message-id:subject:from:to;
 bh=XpJeR005OOMmp4k5jpkAcxLLeMONB80iJffc6Cvk3RI=;
 b=fPm/rAJxxQA3bo5PoprRErAc3RYDkiduzxmOZPrwAuR/WNGLJzI2zlOWT8iOHVOyDO
 sovzj7zDyGwH7WakY4T5002k9XYxFR7VRR+UuCQDf5Cj1xr9m3BzrNo+Qa5I5KwH8IzV
 kUhsSbtUlZTevDLIvn9+VnKJSKmg0Kq3uygANJhJpTNepn7lOe8pbbviCRgyYLZa/ADt
 6fNHV8KVeGD4BVgfcbstrbOMjyix1uocozYm8YjqNBZ+hGH1DDLtlk2QyFjle0VHO3Bm
 BiD24XcEa1AnNFDHMnAcqsfYFHD8cnFXX1tAstN9SRYq+2tQQxp9UfYLJ3hCgiQYj5WH
 bhOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:date:message-id:subject:from:to;
 bh=XpJeR005OOMmp4k5jpkAcxLLeMONB80iJffc6Cvk3RI=;
 b=A3wVl2Sczntn7gutgC/+4io4zFGfYTLzPY+7K/HMSdNXfe7i9VrxqL217MI3zQ88To
 V5KaxfA/mUrQ7p+6gRfLq7U23UCFm/LPu3llmdPmtHWcRk9brihCvYE5oFXg7pPJsLY+
 KHkIKDleft8vmBhXneFD2N6oUuk1tPxds+Cn/7xoFxh9cUvTf7moWsAfLWegMXqB7peh
 aG4fmII50NfRGo23orFjdHokW9XRs6HkgPtXvPMZCF74mD4Iym/uUFDlgN3AfpqHLSG0
 aa82y4GnYK39k6yuA0yShz6iR/VWRvMCiYfM+36nrYt3wOZyCEAy07hyUfs9+376Zjsb
 0+9g==
X-Gm-Message-State: AD7BkJLF11z6RdogN3rzNmJ+3hLg/wMzCXD6TRExvW74tVGt+q0mJ63u98Uew7uNym5C2uEjSNKEhb2O9CFxjg==
MIME-Version: 1.0
X-Received: by 10.28.101.133 with SMTP id z127mr995519wmb.84.1457441432198;
 Tue, 08 Mar 2016 04:50:32 -0800 (PST)
Received: by 10.28.25.199 with HTTP; Tue, 8 Mar 2016 04:50:32 -0800 (PST)
X-Originating-IP: [91.158.100.29]
Date: Tue, 8 Mar 2016 14:50:32 +0200
Message-ID: <CAJ8LpWqUDLr0VcQ3q-E1oeBW887Exbw_fXOdopq6Hhzy7=3MCA@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: [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>

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

