Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiAHs-00009u-Ek for pgadmin-hackers@arkaria.postgresql.org; Thu, 26 Nov 2020 05:57:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kiAHr-0008Mb-DV for pgadmin-hackers@arkaria.postgresql.org; Thu, 26 Nov 2020 05:57:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiAHq-0008MT-Ue for pgadmin-hackers@lists.postgresql.org; Thu, 26 Nov 2020 05:57:47 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kiAHo-0004FK-2h for pgadmin-hackers@postgresql.org; Thu, 26 Nov 2020 05:57:45 +0000 Received: by mail-io1-xd2b.google.com with SMTP id o8so721057ioh.0 for ; Wed, 25 Nov 2020 21:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UGnynncz8vuFHfhhUvfp8LIKdAU7Nfj/TVhJQYBeSJQ=; b=GI5ztnSlSsLk5n5N1GemCuTV+nrADx676rjJHazZWzpt3CaR7a+ANqdEPORzGNe9lg 9HIh4hddqZFW+0ZrwfSQuRbLJf33qu8mXM8QML/c38/qekQGZ45kqBW89ImorHgeYaTA seoOewEnI1hue5vNMQa7QblIpuE4okiqTBDfQfQSXpkrBeGrNP7TszPwQ3pDaArgEnjQ gahF8AG1BhUpe5JyKv5Gn/w3o2WW/MAt1+PqzN4TX0OvTQHoiq1t6NHhdpWagmAGUABU h+U1aCIK3JkAIf7b4Muwm/fBa2cXLTEL0x8SrgwjCkScpdrzda7wI7VwYhBOp4R5dOQ2 8Q7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UGnynncz8vuFHfhhUvfp8LIKdAU7Nfj/TVhJQYBeSJQ=; b=QAhkqhm5hLjDFodG77+Z1hbl15Ocvp/LkzO4caVD0fPzsfCqyulsVHveDfZHAOPAcR tRE//OgIO6uS0TNFvpZyT7M2N/5x2QCP5s22pPNyZYraebOXdCout7AgI76cqG6WJt4E gjJWHqaZe+epFvxUnU6Xq08xni1dvx+KxA7s/WBxSBqKtjI+fp1jbKl9gY6UQxVPbZ3O A4hcxM7Pj3UmTsJWTPxMfIn5wpeL/0dUxenTpuv8UvmiGR5JE4AWJIVz7LPqbGNWmpC4 DbTjEHQ9S8MWQ13fk+BRKsRKdKh8ardlu+VGpu6Cbq1OW8KuyD6zL5a/tswddtylWV8s +M3A== X-Gm-Message-State: AOAM532tgjmJR9ywZIcQr6zO34WpxM9J7DBcD5yuyAyxFYhCOs+Ty9/Q uf2/ZtDJ/nlMRqg75fkClG/AWZ91GgxgkuO41ep17CybNdrem1+UvXiHSMULeXoXwqPR8553XVU aHVc0CZZkxdPpUDPKUtIccequ7BZts/tejh2s+jBO1lSCp/0RavYxD+99TsB517DvN9MEPO1Jpz LkyTx3Tw2mL7XxGaDfMiHcXQzfRTimIqR/Ov1NzEWn/Z9e9RzI08mkVVqUMA== X-Google-Smtp-Source: ABdhPJyN+m1rmREQCSCtrJdMdcrCdiWyU1j2wnwTiD1S+mzIWdO5jbVQMq2bEYvbHDxtbxREwyUknLu1Rx+HnmL2sac= X-Received: by 2002:a05:6602:2d89:: with SMTP id k9mr1295283iow.52.1606370262872; Wed, 25 Nov 2020 21:57:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Thu, 26 Nov 2020 11:27:32 +0530 Message-ID: Subject: Re: SameSite issues in Safari Browser (reference #RM5975) To: Rahul Shirsat Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000e5907005b4fc3857" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000e5907005b4fc3857 Content-Type: text/plain; charset="UTF-8" Hi Rahul On Wed, Nov 25, 2020 at 4:07 PM Rahul Shirsat < rahul.shirsat@enterprisedb.com> wrote: > Hi Dave, > > Due to SameSite security issues in Safari Browser, some of the pgadmin4 > functionality isn't working (mostly the new tab functionality). > > The affected Safari Browser versions (marked in red) currently tested upon > are: > > 1. v11.1.2 > 2. v12.1 > 3. v12.1.1 > 4. 13.1 > 5. 14.0.1 > > Since v12, Safari have done some security fixes, due to which this issue > has occurred. Strangely, the issue is not reproducible on v13, but > reproducible on its successor i.e. v14 > > Possible solutions could be: > > 1. Reporting this to Safari & raising an RM for tracking purposes. > 2. Suggesting Safari users to make below changes in config.py or > config_distro for the work around: > > *SESSION_COOKIE_SAMESITE = None* > > *SESSION_COOKIE_SECURE = True* > (As we aren't going through any cross-site cookie transfer, this can be a > handy option - but still risky..) > > I would suggest going with the 1st option or combination of both, but with > caution. > In my opinion, we should go with both the options, as we have added the above settings for security purposes. > > -- > *Rahul Shirsat* > Software Engineer | EnterpriseDB Corporation. > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Principal Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --000000000000e5907005b4fc3857 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Rahul

On Wed, Nov 25, 2020 at 4:07= PM Rahul Shirsat <rah= ul.shirsat@enterprisedb.com> wrote:
Hi Dave,

Due= to SameSite security issues in Safari=C2=A0Browser, some of the pgadmin4 f= unctionality isn't working (mostly the new tab functionality).

The affected Safari Browser versions (marked in red) curre= ntly tested upon are:
  1. v11.1.2
  2. v12.1
  3. v12.1.1
  4. 13.1
  5. 14.0.1
Since v12, Safari have done some security fixes, due to = which this issue has occurred. Strangely, the issue is not reproducible on = v13, but reproducible=C2=A0on its successor i.e. v14

Possible solutions could be:
  1. Reporting this to S= afari & raising an RM for tracking purposes.
  2. Suggesting Safari = users to make below changes in config.py or config_distro for the work arou= nd:
SESSION_COOKIE_SAMESITE =3D None
SESSION_COOKIE_= SECURE =3D True

(As we aren't going through any cross-site c= ookie transfer, this can be a handy option - but still risky..)

I would suggest going with the 1st option or combination of b= oth, but with caution.

=C2=A0 = =C2=A0In my opinion, we should go with both the options, as we have added t= he above settings for security purposes.

--
Rahul Shirsat
Software Engi= neer=C2=A0|=C2=A0EnterpriseDB=C2=A0Corporation.


--
Thanks & Regards
Akshay Joshi
pgAdmi= n Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

--000000000000e5907005b4fc3857--