MIME-Version: 1.0
Date: Wed, 17 Jun 2020 10:30:43 -0700
References: <CAP2_hE9=Org0kacQ_bpUcVHw+X+9Z3M3jYMU_T1xgSaYh-4eNQ@mail.gmail.com>
	<CAO5Q_E_iTpFArgRT84d3LzvrGRQWMaKW_SW=sKvcqD3ujbN37A@mail.gmail.com>
In-Reply-To: <CAO5Q_E_iTpFArgRT84d3LzvrGRQWMaKW_SW=sKvcqD3ujbN37A@mail.gmail.com>
Message-ID: <CAP2_hE9doQPeoRW2nLeSqCXniOUL8LhuKWQRn4+_PAWmZc8M0A@mail.gmail.com>
Subject: Re: [Security] improper use of symmetric encryption in UniFi inform protocol
From: Jade Auer <jade@trashwitch.dev>
To: Security Team <security@ui.com>
Content-Type: multipart/alternative; boundary="000000000000ff645905a84b0482"

--000000000000ff645905a84b0482
Content-Type: text/plain; charset="UTF-8"

Unfortunately I won't be able to report via HackerOne.
The terms and conditions contained in the "Guidelines for Platform
Products" portion of your HackerOne policy aren't something that I'm
comfortable accepting.

On Wed, Jun 17, 2020 at 3:04 AM Security Team <security@ui.com> wrote:

> Hello Jade,
>
> Can you report this via hackerone.com/ui ? We manage everything including
> CVE requests if needed directly from there.
>
> Thank you,
> Security Team
>
> On Wed, Jun 17, 2020 at 3:34 AM Jade Auer <jade@trashwitch.dev> wrote:
>
>> Good morning,
>>
>> # Vulnerability
>> (see also: attached)
>> Affected product: UniFi controller 5.12.72, USMINI 1.6.1.525 (among
>> others)
>> Note: all versions of UniFi controller and device software to date are
>> believed to be affected.
>>
>> Description: use of symmetric encryption instead of asymmetric encryption
>> (e.g. TLS) permits observation of traffic without MITM. Use of static
>> initial key means any future key exchange should be assumed to be
>> compromised.
>> See also: CWE-300, CWE-321, CWE-322, CWE-656
>>
>> Exploit: See attached for example from program extracting keys from pcap
>> of device adoption traffic.
>>
>> Impact: Loss of user privacy, potentially remote root via MITM to inject
>> crafted inform responses.
>>
>> How was this found? Considering implications of protocol design choices
>> while reading various 3rd party implementations of the inform protocol.
>>
>> When was this found? 22 May 2020
>>
>> Mitigation: Use JSON over TLS for inform request/response instead of
>> implementing bespoke encoding methods with symmetric encryption.
>>
>> # Disclosure Plans
>> I have already reported this vulnerability to the following vendors and
>> organizations: Facebook (other members of security staff for peer review
>> and internal mitigation)
>>
>> Is this vulnerability being publicly discussed? No, however all the data
>> required to discover vulnerability are in public. For example:
>> https://jrjparks.github.io/unofficial-unifi-guide
>>
>> Is there evidence that this vulnerability is being actively exploited? no.
>>
>> I plan to publicly disclose this on 17 August 2020 (30 days from now) at
>> https://jade.wtf/words/unifi-inform-crypto/
>> Up to 90 days if delay will meaningfully enable mitigation. Within 14
>> days if y'all do not consider this a vulnerability.
>>
>> As Ubiquiti is not a CVE Numbering Authority, I intend to request a CVE
>> from MITRE on confirmation that one does not already exist, or on 25 July
>> 2020 absent other communication on this issue.
>>
>> # Reporter
>> Name: Jade Auer
>> Email: jade@trashwitch.dev
>>
>> Thanks,
>> -Jade
>>
>>

--000000000000ff645905a84b0482
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Unfortunately=C2=A0I won&#39;t be able to=
 report via HackerOne.<br>The terms and conditions contained in the &quot;G=
uidelines for Platform Products&quot; portion of your HackerOne policy aren=
&#39;t something that I&#39;m comfortable accepting.<br></div><br><div clas=
s=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 17, 202=
0 at 3:04 AM Security Team &lt;<a href=3D"mailto:security@ui.com">security@=
ui.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div dir=3D"ltr"><div dir=3D"ltr">Hello Jade,<div><br></div><div>Can =
you report this via <a href=3D"http://hackerone.com/ui" target=3D"_blank">h=
ackerone.com/ui</a> ? We manage everything including CVE requests if needed=
 directly from there.</div><div><br></div><div>Thank you,</div><div>Securit=
y Team</div><div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">On Wed, Jun 17, 2020 at 3:34 AM Jade Auer &lt;<a hre=
f=3D"mailto:jade@trashwitch.dev" target=3D"_blank">jade@trashwitch.dev</a>&=
gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div =
dir=3D"ltr"><div>Good morning,<br><br># Vulnerability<br>(see also: attache=
d)<br>Affected product: UniFi controller 5.12.72, USMINI 1.6.1.525 (among o=
thers)<br>Note: all versions of UniFi controller and device software=C2=A0t=
o date=C2=A0are believed to be affected.<br><br></div><div>Description: use=
 of symmetric encryption instead of asymmetric=C2=A0encryption (e.g. TLS) p=
ermits observation of traffic without MITM. Use of static initial key means=
 any future key exchange should be assumed to be compromised.<br>See also: =
CWE-300, CWE-321, CWE-322, CWE-656</div><div><br></div><div>Exploit: See at=
tached for example from program extracting keys from pcap of device adoptio=
n traffic.</div><div><br></div><div>Impact: Loss of user privacy, potential=
ly remote root via MITM to inject crafted inform responses.</div><div><br><=
/div><div>How was this found? Considering implications of protocol design c=
hoices while reading various 3rd party implementations of the inform protoc=
ol.<br><br>When was this found? 22 May 2020<br><br>Mitigation: Use JSON ove=
r TLS for inform=C2=A0request/response instead of implementing bespoke enco=
ding methods with symmetric encryption.</div><div><br># Disclosure Plans<br=
>I have already reported this vulnerability to the following vendors and or=
ganizations: Facebook (other members of security staff for peer review and =
internal mitigation)<br><br></div><div>Is this vulnerability being publicly=
 discussed? No, however all the data required to discover vulnerability=C2=
=A0are in public. For example:=C2=A0<a href=3D"https://jrjparks.github.io/u=
nofficial-unifi-guide" target=3D"_blank">https://jrjparks.github.io/unoffic=
ial-unifi-guide</a>=C2=A0=C2=A0</div><div><br></div><div>Is there evidence =
that this vulnerability is being actively exploited? no.</div><div><br></di=
v><div>I plan to publicly disclose this on 17 August 2020 (30 days from now=
) at <a href=3D"https://jade.wtf/words/unifi-inform-crypto/" target=3D"_bla=
nk">https://jade.wtf/words/unifi-inform-crypto/</a><br>Up to 90 days if del=
ay will meaningfully=C2=A0enable mitigation. Within 14 days if y&#39;all do=
 not consider=C2=A0this a vulnerability.<br><br>As Ubiquiti is not a CVE Nu=
mbering Authority, I intend to request a CVE from MITRE on confirmation tha=
t one does not already exist, or on 25 July 2020 absent other communication=
 on this issue.<br><br># Reporter</div><div>Name: Jade Auer<br>Email: <a hr=
ef=3D"mailto:jade@trashwitch.dev" target=3D"_blank">jade@trashwitch.dev</a>=
<br><br>Thanks,<br>-Jade</div><div><br></div></div>
</blockquote></div></div>
</blockquote></div></div>

--000000000000ff645905a84b0482--